public class RollbackMojo extends org.liquibase.maven.plugins.LiquibaseRollback
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
clearCheckSums
Flag for forcing the checksums to be cleared from teh DatabaseChangeLog table.
|
protected String |
databaseClass
The class to use as the database object.
|
static String |
DEFAULT_CHANGELOG_PATH |
protected String |
defaultSchemaName
The default schema name to use the for database connection.
|
protected String |
driver
The fully qualified name of the driver class to use to connect to the database.
|
protected boolean |
emptyPassword
Deprecated.
Use an empty or null value for the password instead.
|
protected boolean |
includeArtifact
Allows for the maven project artifact to be included in the class loader for
obtaining the Liquibase property and DatabaseChangeLog files.
|
protected boolean |
includeTestOutputDirectory
Allows for the maven test output directory to be included in the class loader for
obtaining the Liquibase property and DatabaseChangeLog files.
|
protected String |
logging
Controls the level of logging from Liquibase when executing.
|
protected String |
password
The database password to use to connect to the specified database.
|
protected boolean |
promptOnNonLocalDatabase
Controls the prompting of users as to whether or not they really want to run the
changes on a database that is not local to the machine that the user is current
executing the plugin on.
|
protected String |
propertyFile
The Liquibase properties file used to configure the Liquibase
Liquibase. |
protected boolean |
propertyFileWillOverride
Flag allowing for the Liquibase properties file to override any settings provided in
the Maven plugin configuration.
|
protected Properties |
systemProperties
List of system properties to pass to the database.
|
protected String |
url
The Database URL to connect to for executing Liquibase.
|
protected String |
username
The database username to use to connect to the specified database.
|
protected boolean |
verbose
Controls the verbosity of the output from invoking the plugin.
|
protected org.apache.maven.artifact.manager.WagonManager |
wagonManager
The Maven Wagon manager to use when obtaining server authentication details.
|
rollbackCount, rollbackDate, rollbackTag, type| Constructor and Description |
|---|
RollbackMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doFieldHack() |
void |
execute() |
protected File |
getBasedir() |
protected Field |
getDeclaredField(Class clazz,
String fieldName)
Recursively searches for the field specified by the fieldName in the class and all
the super classes until it either finds it, or runs out of parents.
|
protected void |
parsePropertiesFile(InputStream propertiesInputStream)
Parses a properties file and sets the assocaited fields in the plugin.
|
protected void |
performLiquibaseTask(liquibase.Liquibase liquibase) |
protected void |
printSettings(String indent) |
checkRequiredParametersAreSpecifiedcreateLiquibase, getFileOpenercleanup, configureFieldsAndValues, getClassLoaderIncludingProjectClasspath, getLiquibase, getMavenArtifactClassLoader, isPromptOnNonLocalDatabasepublic static final String DEFAULT_CHANGELOG_PATH
protected String driver
protected org.apache.maven.artifact.manager.WagonManager wagonManager
protected String username
protected String password
protected boolean emptyPassword
password setting.protected String defaultSchemaName
protected String databaseClass
protected boolean promptOnNonLocalDatabase
protected boolean includeArtifact
protected boolean includeTestOutputDirectory
protected boolean verbose
protected String logging
protected String propertyFile
Liquibase.protected boolean propertyFileWillOverride
protected boolean clearCheckSums
protected Properties systemProperties
public RollbackMojo()
protected File getBasedir()
protected void doFieldHack()
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoexecute in class org.liquibase.maven.plugins.AbstractLiquibaseMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void performLiquibaseTask(liquibase.Liquibase liquibase) throws liquibase.exception.LiquibaseException
performLiquibaseTask in class org.liquibase.maven.plugins.LiquibaseRollbackliquibase.exception.LiquibaseExceptionprotected void printSettings(String indent)
printSettings in class org.liquibase.maven.plugins.LiquibaseRollbackprotected void parsePropertiesFile(InputStream propertiesInputStream) throws org.apache.maven.plugin.MojoExecutionException
parsePropertiesFile in class org.liquibase.maven.plugins.AbstractLiquibaseMojopropertiesInputStream - The input stream which is the Liquibase properties that
needs to be parsed.org.apache.maven.plugin.MojoExecutionException - If there is a problem parsing
the file.protected Field getDeclaredField(Class clazz, String fieldName) throws NoSuchFieldException
clazz - The Class to start searching from.fieldName - The name of the field to retrieve.Field identified by the field name.NoSuchFieldException - If the field was not found in the class or any of its
super classes.Copyright © 2004-2012 Kualigan. All Rights Reserved.