Top Fields Constructors Methods
liquibase.command.core

public Class StartH2CommandStep

extends AbstractCommandStep
Class Inheritance
Imports
liquibase.Scope, liquibase.command.*, liquibase.configuration.ConfigurationValueObfuscator, java.sql.Connection, .DriverManager

Field Summary

Modifier and TypeField and Description
public static final CommandArgumentDefinition<String>
public static final String[]
public static final CommandArgumentDefinition<Integer>
public static final CommandArgumentDefinition<Boolean>
public static final CommandArgumentDefinition<String>
public static final CommandArgumentDefinition<String>
public static final CommandArgumentDefinition<Integer>
Inherited from liquibase.command.AbstractCommandStep:
coreBundle

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
private static String
createWebSession(Connection connection, Object webServer, boolean openBrowser)

public String[][]
defineCommandNames()

Implements liquibase.command.CommandStep.defineCommandNames.

Defines new command names For example, if it is part of `liquibase update`, this should return new String[][]{ new String[] {"update"}}.

public void
run(CommandResultsBuilder resultsBuilder)

Implements liquibase.command.CommandStep.run.

Performs the business logic.

protected static void
protected static Object
Inherited from liquibase.command.AbstractCommandStep:
getOrderprovidedDependenciesrequiredDependenciesvalidate

Field Detail

BIND_ARGback to summary
public static final CommandArgumentDefinition<String> BIND_ARG
COMMAND_NAMEback to summary
public static final String[] COMMAND_NAME
DB_PORT_ARGback to summary
public static final CommandArgumentDefinition<Integer> DB_PORT_ARG
LAUNCH_BROWSER_ARGback to summary
public static final CommandArgumentDefinition<Boolean> LAUNCH_BROWSER_ARG
PASSWORD_ARGback to summary
public static final CommandArgumentDefinition<String> PASSWORD_ARG
USERNAME_ARGback to summary
public static final CommandArgumentDefinition<String> USERNAME_ARG
WEB_PORT_ARGback to summary
public static final CommandArgumentDefinition<Integer> WEB_PORT_ARG

Constructor Detail

StartH2CommandStepback to summary
public StartH2CommandStep()

Method Detail

adjustCommandDefinitionback to summary
public void adjustCommandDefinition(CommandDefinition commandDefinition)

Overrides liquibase.command.AbstractCommandStep.adjustCommandDefinition.

Implements liquibase.command.CommandStep.adjustCommandDefinition.

Doc from liquibase.command.AbstractCommandStep.adjustCommandDefinition.

Default implementation makes no changes

Annotations
@Override
createWebSessionback to summary
private static String createWebSession(Connection connection, Object webServer, boolean openBrowser) throws Exception
defineCommandNamesback to summary
public String[][] defineCommandNames()

Implements liquibase.command.CommandStep.defineCommandNames.

Doc from liquibase.command.CommandStep.defineCommandNames.

Defines new command names For example, if it is part of `liquibase update`, this should return new String[][]{ new String[] {"update"}}. If it is a part of `liquibase example init`, this should return {"example", "init"}.

This is used to determine the available command names.

This can return null if this step is not defining a new command but "cross-cutting" existing commands

Annotations
@Override
runback to summary
public void run(CommandResultsBuilder resultsBuilder) throws Exception

Implements liquibase.command.CommandStep.run.

Doc from liquibase.command.CommandStep.run.

Performs the business logic. This method should not be called directly. It is called by the overall pipeline logic in the CommandScope#execute() order.

Annotations
@Override
startTcpServerback to summary
protected static void startTcpServer(Integer dbPort) throws Exception
startWebServerback to summary
protected static Object startWebServer(Integer webPort) throws Exception