Package liquibase.command.core
Class AbstractRollbackCommandStep
java.lang.Object
liquibase.command.AbstractCommandStep
liquibase.command.core.AbstractRollbackCommandStep
- All Implemented Interfaces:
CommandStep
- Direct Known Subclasses:
RollbackCommandStep,RollbackCountCommandStep,RollbackToDateCommandStep
AbstractRollbackCommandStep provides the common operations to all the rollback* commands.
-
Field Summary
FieldsFields inherited from class liquibase.command.AbstractCommandStep
coreBundleFields inherited from interface liquibase.command.CommandStep
ORDER_DEFAULT, ORDER_NOT_APPLICABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadjustCommandDefinition(CommandDefinition commandDefinition) Default implementation makes no changesprotected static RawSQLChangebuildRawSQLChange(String rollbackScriptContents) protected voiddoRollback(CommandResultsBuilder resultsBuilder, List<RanChangeSet> ranChangeSetList, ChangeSetFilter changeSetFilter) protected voiddoRollback(CommandResultsBuilder resultsBuilder, List<RanChangeSet> ranChangeSetList, ChangeSetFilter changeSetFilter, RollbackReportParameters rollbackReportParameters) static voiddoRollback(Database database, String changelogFile, String rollbackScript, ChangeLogIterator logIterator, ChangeLogParameters changeLogParameters, DatabaseChangeLog databaseChangeLog, ChangeExecListener changeExecListener) Actually perform the rollback operation.static voiddoRollback(Database database, String changelogFile, String rollbackScript, ChangeLogIterator logIterator, ChangeLogParameters changeLogParameters, DatabaseChangeLog databaseChangeLog, ChangeExecListener changeExecListener, RollbackReportParameters rollbackReportParameters) Actually perform the rollback operation.Return a list of configured Classes that this command requires to be passed as a dependency.Methods inherited from class liquibase.command.AbstractCommandStep
getOrder, handleOutput, providedDependencies, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface liquibase.command.CommandStep
defineCommandNames, isInternal, run
-
Field Details
-
ROLLBACK_SCRIPT_ARG
-
-
Constructor Details
-
AbstractRollbackCommandStep
public AbstractRollbackCommandStep()
-
-
Method Details
-
doRollback
protected void doRollback(CommandResultsBuilder resultsBuilder, List<RanChangeSet> ranChangeSetList, ChangeSetFilter changeSetFilter) throws Exception - Throws:
Exception
-
doRollback
protected void doRollback(CommandResultsBuilder resultsBuilder, List<RanChangeSet> ranChangeSetList, ChangeSetFilter changeSetFilter, RollbackReportParameters rollbackReportParameters) throws Exception - Throws:
Exception
-
doRollback
public static void doRollback(Database database, String changelogFile, String rollbackScript, ChangeLogIterator logIterator, ChangeLogParameters changeLogParameters, DatabaseChangeLog databaseChangeLog, ChangeExecListener changeExecListener) throws Exception Actually perform the rollback operation. Determining which changesets to roll back is the responsibility of the logIterator.- Throws:
Exception
-
doRollback
public static void doRollback(Database database, String changelogFile, String rollbackScript, ChangeLogIterator logIterator, ChangeLogParameters changeLogParameters, DatabaseChangeLog databaseChangeLog, ChangeExecListener changeExecListener, RollbackReportParameters rollbackReportParameters) throws Exception Actually perform the rollback operation. Determining which changesets to roll back is the responsibility of the logIterator.- Throws:
Exception
-
buildRawSQLChange
-
requiredDependencies
Description copied from interface:CommandStepReturn a list of configured Classes that this command requires to be passed as a dependency.- Specified by:
requiredDependenciesin interfaceCommandStep- Overrides:
requiredDependenciesin classAbstractCommandStep- Returns:
- list with the required classes types
-
adjustCommandDefinition
Description copied from class:AbstractCommandStepDefault implementation makes no changes- Specified by:
adjustCommandDefinitionin interfaceCommandStep- Overrides:
adjustCommandDefinitionin classAbstractCommandStep
-