Package org.liquibase.maven.plugins
Class LiquibaseFutureRollbackSQL
- 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.LiquibaseFutureRollbackSQL
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
public class LiquibaseFutureRollbackSQL extends LiquibaseRollback
Generates the SQL that is required to rollback the database to current state after the next update.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.liquibase.maven.plugins.LiquibaseRollback
LiquibaseRollback.RollbackType
-
-
Field Summary
Fields Modifier and Type Field Description protected FileoutputFileThe 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, type
-
Fields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
changeLogDirectory, changeLogFile, contexts, duplicateFileMode, labelFilter, labels
-
Fields inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo
changeExecListenerClass, changeExecListenerPropertiesFile, changelogCatalogName, changelogSchemaName, clearCheckSums, commandName, databaseChangelogHistoryCaptureExtensions, databaseChangelogHistoryCaptureSql, databaseChangelogHistoryEnabled, databaseChangeLogLockTableName, databaseChangeLogTableName, databaseClass, dbclHistoryCaptureExtensions, dbclHistoryCaptureSql, dbclHistoryEnabled, defaultCatalogName, defaultChangeExecListener, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, logFormat, logging, logLevel, mojoExecution, outputDefaultCatalog, outputDefaultSchema, outputFileEncoding, password, preserveSchemaCase, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, propertyProviderClass, psqlArgs, psqlKeepTemp, psqlKeepTempName, psqlKeepTempPath, psqlLogFile, psqlPath, psqlTimeout, searchPath, session, showBanner, skip, skipOnFileExists, sqlcmdArgs, sqlcmdCatalogName, sqlcmdKeepTemp, sqlcmdKeepTempName, sqlcmdKeepTempOverwrite, sqlcmdKeepTempPath, sqlcmdLogFile, sqlcmdPath, sqlcmdTimeout, sqlPlusArgs, sqlPlusKeepTemp, sqlPlusKeepTempName, sqlPlusKeepTempOverwrite, sqlPlusKeepTempPath, sqlPlusLogFile, sqlPlusPath, sqlPlusTimeout, systemProperties, url, username, verbose, wagonManager
-
-
Constructor Summary
Constructors Constructor Description LiquibaseFutureRollbackSQL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckRequiredRollbackParameters()protected voidcleanup(Database db)protected LiquibasecreateLiquibase(Database db)protected 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, parseDate
-
Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
getLabelFilter, getResourceAccessor
-
Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo
configureChangeLogProperties, configureFieldsAndValues, databaseConnectionRequired, execute, getClassLoaderIncludingProjectClasspath, getField, getLicenseKey, getLiquibase, getLog, getMavenArtifactClassLoader, getOutputStream, getOutputWriter, isPromptOnNonLocalDatabase, parsePropertiesFile, setPassword, setupBindInfoPackage, setUrl, setUsername
-
-
-
-
Field Detail
-
outputFile
@PropertyElement protected File outputFile
The file to output the Rollback SQL script to, if it exists it will be overwritten.
-
-
Method Detail
-
createLiquibase
protected Liquibase createLiquibase(Database db) throws org.apache.maven.plugin.MojoExecutionException
- Overrides:
createLiquibasein classAbstractLiquibaseChangeLogMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
printSettings
protected void printSettings(String indent)
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
protected void cleanup(Database db)
- Overrides:
cleanupin classAbstractLiquibaseMojo
-
performLiquibaseTask
protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException
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
-
checkRequiredRollbackParameters
protected void checkRequiredRollbackParameters() throws org.apache.maven.plugin.MojoFailureException- Overrides:
checkRequiredRollbackParametersin classLiquibaseRollback- Throws:
org.apache.maven.plugin.MojoFailureException
-
-