Package org.liquibase.maven.plugins
Class LiquibaseRollbackSQL
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.liquibase.maven.plugins.AbstractLiquibaseMojo
org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
org.liquibase.maven.plugins.LiquibaseRollback
org.liquibase.maven.plugins.LiquibaseRollbackSQL
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
Generates the SQL that is required to rollback the database using one or more of the specified attributes 'rollbackCount', 'rollbackTag' and/or 'rollbackDate'
-
Nested Class Summary
Nested classes/interfaces inherited from class org.liquibase.maven.plugins.LiquibaseRollback
LiquibaseRollback.RollbackType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileThe file to output the Rollback SQL script to, if it exists it will be overwritten.Fields inherited from class org.liquibase.maven.plugins.LiquibaseRollback
rollbackCount, rollbackDate, rollbackScript, rollbackTag, typeFields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
changeLogDirectory, changeLogFile, contexts, duplicateFileMode, labelFilter, labelsFields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo
analyticsEnabled, changeExecListenerClass, changeExecListenerPropertiesFile, changelogCatalogName, changelogSchemaName, clearCheckSums, commandName, databaseChangeLogLockTableName, databaseChangeLogTableName, databaseClass, defaultCatalogName, defaultChangeExecListener, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, logging, logLevel, mojoExecution, outputDefaultCatalog, outputDefaultSchema, outputFileEncoding, password, preserveSchemaCase, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, propertyProviderClass, searchPath, session, showBanner, skip, skipOnFileExists, suppressLiquibaseSql, systemProperties, url, username, verbose, wagonManagerFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected Liquibaseprotected voidperformLiquibaseTask(Liquibase liquibase) Performs the actual Liquibase task on the database using the fully configuredLiquibase.protected voidprintSettings(String indent) Prints the settings that have been set of defaulted for the plugin.Methods inherited from class org.liquibase.maven.plugins.LiquibaseRollback
checkRequiredParametersAreSpecified, checkRequiredRollbackParameters, parseDateMethods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
getLabelFilter, getResourceAccessorMethods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo
configureChangeLogProperties, configureFieldsAndValues, databaseConnectionRequired, execute, getClassLoaderIncludingProjectClasspath, getField, getLiquibase, getLog, getMavenArtifactClassLoader, getOutputStream, getOutputWriter, isPromptOnNonLocalDatabase, parsePropertiesFile, setupBindInfoPackageMethods inherited from class org.apache.maven.plugin.AbstractMojo
getPluginContext, setLog, setPluginContext
-
Field Details
-
migrationSqlOutputFile
The file to output the Rollback SQL script to, if it exists it will be overwritten.
-
-
Constructor Details
-
LiquibaseRollbackSQL
public LiquibaseRollbackSQL()
-
-
Method Details
-
createLiquibase
protected Liquibase createLiquibase(Database db) throws org.apache.maven.plugin.MojoExecutionException - Overrides:
createLiquibasein classAbstractLiquibaseChangeLogMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
printSettings
Description copied from class:AbstractLiquibaseMojoPrints the settings that have been set of defaulted for the plugin. These will only be shown in verbose mode.- Overrides:
printSettingsin classLiquibaseRollback- Parameters:
indent- The indent string to use when printing the settings.
-
cleanup
- Overrides:
cleanupin classAbstractLiquibaseMojo
-
performLiquibaseTask
Description copied from class:AbstractLiquibaseChangeLogMojoPerforms the actual Liquibase task on the database using the fully configuredLiquibase.- Overrides:
performLiquibaseTaskin classLiquibaseRollback- Parameters:
liquibase- TheLiquibasethat has been fully configured to run the desired database task.- Throws:
LiquibaseException
-