Package liquibase.integration.ant
Class DatabaseRollbackTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- liquibase.integration.ant.BaseLiquibaseTask
-
- liquibase.integration.ant.AbstractChangeLogBasedTask
-
- liquibase.integration.ant.DatabaseRollbackTask
-
- All Implemented Interfaces:
Cloneable
public class DatabaseRollbackTask extends AbstractChangeLogBasedTask
Ant task for rolling back a database.
-
-
Constructor Summary
Constructors Constructor Description DatabaseRollbackTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteWithLiquibaseClassloader()IntegergetRollbackCount()DategetRollbackDate()StringgetRollbackScript()StringgetRollbackTag()voidsetRollbackCount(Integer rollbackCount)voidsetRollbackDate(String rollbackDateStr)voidsetRollbackScript(String rollbackScript)voidsetRollbackTag(String rollbackTag)-
Methods inherited from class liquibase.integration.ant.AbstractChangeLogBasedTask
getChangeLogDirectory, getChangeLogFile, getContexts, getLabelFilter, getLabels, getOutputEncoding, getOutputFile, getOutputFileWriter, getSearchPath, setChangeLogDirectory, setChangeLogFile, setContexts, setLabelFilter, setLabels, setOutputEncoding, setOutputFile, setSearchPath, validateParameters
-
Methods inherited from class liquibase.integration.ant.BaseLiquibaseTask
addChangeLogParameters, addDatabase, closeDatabase, createClasspath, createDatabaseFromConfiguredDatabaseType, createDatabaseFromType, execute, getDefaultOutputEncoding, getLiquibase, getResourceAccessor, init, isPromptOnNonLocalDatabase, setChangeLogParametersRef, setClasspathRef, setDatabaseRef, setPromptOnNonLocalDatabase, shouldRun
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
executeWithLiquibaseClassloader
public void executeWithLiquibaseClassloader() throws org.apache.tools.ant.BuildException- Specified by:
executeWithLiquibaseClassloaderin classBaseLiquibaseTask- Throws:
org.apache.tools.ant.BuildException
-
getRollbackDate
public Date getRollbackDate()
-
setRollbackDate
public void setRollbackDate(String rollbackDateStr)
-
getRollbackTag
public String getRollbackTag()
-
setRollbackTag
public void setRollbackTag(String rollbackTag)
-
getRollbackCount
public Integer getRollbackCount()
-
setRollbackCount
public void setRollbackCount(Integer rollbackCount)
-
getRollbackScript
public String getRollbackScript()
-
setRollbackScript
public void setRollbackScript(String rollbackScript)
-
-