|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.liquibase.maven.plugins.AbstractLiquibaseMojo
org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
org.liquibase.maven.plugins.LiquibaseRollback
public class LiquibaseRollback
Invokes Liquibase rollbacks on a database.
| Nested Class Summary | |
|---|---|
protected static class |
LiquibaseRollback.RollbackType
|
| Field Summary | |
|---|---|
protected int |
rollbackCount
The number of change sets to rollback. |
protected String |
rollbackDate
The date to rollback the database to. |
protected String |
rollbackScript
External script containing rollback logic. |
protected String |
rollbackTag
The tag to roll the database back to. |
protected LiquibaseRollback.RollbackType |
type
The type of the rollback that is being performed. |
| Fields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo |
|---|
changeLogFile, contexts, labels |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
LiquibaseRollback()
|
|
| Method Summary | |
|---|---|
protected void |
checkRequiredParametersAreSpecified()
Performs some validation after the properties file has been loaded checking that all properties required have been specified. |
protected void |
checkRequiredRollbackParameters()
|
protected void |
performLiquibaseTask(Liquibase liquibase)
Performs the actual Liquibase task on the database using the fully configured Liquibase. |
protected void |
printSettings(String indent)
Prints the settings that have been set of defaulted for the plugin. |
| Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo |
|---|
createLiquibase, getFileOpener |
| Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo |
|---|
cleanup, configureFieldsAndValues, execute, getClassLoaderIncludingProjectClasspath, getLiquibase, getMavenArtifactClassLoader, getOutputWriter, isPromptOnNonLocalDatabase, parsePropertiesFile |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String rollbackTag
protected int rollbackCount
protected String rollbackDate
DateFormat.getDateInstance() for the platform the plugin is executing
on.
protected LiquibaseRollback.RollbackType type
protected String rollbackScript
| Constructor Detail |
|---|
public LiquibaseRollback()
| Method Detail |
|---|
protected void checkRequiredParametersAreSpecified()
throws org.apache.maven.plugin.MojoFailureException
AbstractLiquibaseMojo
checkRequiredParametersAreSpecified in class AbstractLiquibaseChangeLogMojoorg.apache.maven.plugin.MojoFailureException - If any property that is required has not been
specified.
protected void checkRequiredRollbackParameters()
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void printSettings(String indent)
AbstractLiquibaseMojo
printSettings in class AbstractLiquibaseChangeLogMojoindent - The indent string to use when printing the settings.
protected void performLiquibaseTask(Liquibase liquibase)
throws LiquibaseException
AbstractLiquibaseChangeLogMojoLiquibase.
performLiquibaseTask in class AbstractLiquibaseChangeLogMojoliquibase - The Liquibase that has been fully
configured to run the desired database task.
LiquibaseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||