Top Description Fields Constructors Methods
liquibase.command.core

public Class RollbackSqlCommandStep

extends RollbackCommandStep
Class Inheritance
Imports
liquibase.TagVersionEnum, liquibase.command.*, liquibase.command.core.helpers.DatabaseChangelogCommandStep, liquibase.database.Database, liquibase.util.LoggingExecutorTextUtil, java.io.Writer, java.util.ArrayList, .List

RollbackSqlCommandStep performs the rollback-to-tag-sql logic.

Field Summary

Modifier and TypeField and Description
public static final String[]
public static final CommandArgumentDefinition<Boolean>
public static final CommandArgumentDefinition<Boolean>
Inherited from liquibase.command.core.RollbackCommandStep:
TAG_ARGTAG_VERSION_ARG

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public String[][]
defineCommandNames()

Overrides liquibase.command.core.RollbackCommandStep.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 List<Class<?>>
requiredDependencies()

Overrides liquibase.command.core.AbstractRollbackCommandStep.requiredDependencies.

Implements liquibase.command.CommandStep.requiredDependencies.

Return a list of configured Classes that this command requires to be passed as a dependency.

public void
run(CommandResultsBuilder resultsBuilder)

Overrides liquibase.command.core.RollbackCommandStep.run.

Implements liquibase.command.CommandStep.run.

Performs the business logic.

Field Detail

COMMAND_NAMEback to summary
public static final String[] COMMAND_NAME

Hides liquibase.command.core.RollbackCommandStep.COMMAND_NAME.

OUTPUT_DEFAULT_CATALOG_ARGback to summary
public static final CommandArgumentDefinition<Boolean> OUTPUT_DEFAULT_CATALOG_ARG
OUTPUT_DEFAULT_SCHEMA_ARGback to summary
public static final CommandArgumentDefinition<Boolean> OUTPUT_DEFAULT_SCHEMA_ARG

Constructor Detail

RollbackSqlCommandStepback to summary
public RollbackSqlCommandStep()

Method Detail

adjustCommandDefinitionback to summary
public void adjustCommandDefinition(CommandDefinition commandDefinition)

Overrides liquibase.command.core.RollbackCommandStep.adjustCommandDefinition.

Implements liquibase.command.CommandStep.adjustCommandDefinition.

Doc from liquibase.command.AbstractCommandStep.adjustCommandDefinition.

Default implementation makes no changes

Annotations
@Override
defineCommandNamesback to summary
public String[][] defineCommandNames()

Overrides liquibase.command.core.RollbackCommandStep.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
requiredDependenciesback to summary
public List<Class<?>> requiredDependencies()

Overrides liquibase.command.core.AbstractRollbackCommandStep.requiredDependencies.

Implements liquibase.command.CommandStep.requiredDependencies.

Doc from liquibase.command.CommandStep.requiredDependencies.

Return a list of configured Classes that this command requires to be passed as a dependency.

Returns:List<Class<?>>

list with the required classes types

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

Overrides liquibase.command.core.RollbackCommandStep.run.

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