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 SummaryNested classes/interfaces inherited from class org.liquibase.maven.plugins.LiquibaseRollbackLiquibaseRollback.RollbackType
- 
Field SummaryFieldsModifier 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.LiquibaseRollbackrollbackCount, rollbackDate, rollbackScript, rollbackTag, typeFields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojochangeLogDirectory, changeLogFile, contexts, duplicateFileMode, labelFilter, labelsFields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojoanalyticsEnabled, 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.MojoROLE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.LiquibaseRollbackcheckRequiredParametersAreSpecified, checkRequiredRollbackParameters, parseDateMethods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojogetLabelFilter, getResourceAccessorMethods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojoconfigureChangeLogProperties, configureFieldsAndValues, databaseConnectionRequired, execute, getClassLoaderIncludingProjectClasspath, getField, getLiquibase, getLog, getMavenArtifactClassLoader, getOutputStream, getOutputWriter, isPromptOnNonLocalDatabase, parsePropertiesFile, setupBindInfoPackageMethods inherited from class org.apache.maven.plugin.AbstractMojogetPluginContext, setLog, setPluginContext
- 
Field Details- 
migrationSqlOutputFileThe file to output the Rollback SQL script to, if it exists it will be overwritten.
 
- 
- 
Constructor Details- 
LiquibaseRollbackSQLpublic LiquibaseRollbackSQL()
 
- 
- 
Method Details- 
createLiquibaseprotected Liquibase createLiquibase(Database db) throws org.apache.maven.plugin.MojoExecutionException - Overrides:
- createLiquibasein class- AbstractLiquibaseChangeLogMojo
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
- 
printSettingsDescription 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 class- LiquibaseRollback
- Parameters:
- indent- The indent string to use when printing the settings.
 
- 
cleanup- Overrides:
- cleanupin class- AbstractLiquibaseMojo
 
- 
performLiquibaseTaskDescription copied from class:AbstractLiquibaseChangeLogMojoPerforms the actual Liquibase task on the database using the fully configuredLiquibase.- Overrides:
- performLiquibaseTaskin class- LiquibaseRollback
- Parameters:
- liquibase- The- Liquibasethat has been fully configured to run the desired database task.
- Throws:
- LiquibaseException
 
 
-