public class LiquibaseFutureRollbackSQL extends LiquibaseRollback
Generates the SQL that is required to rollback the database to current state after the next update.
LiquibaseRollback.RollbackType
Modifier and Type | Field and Description |
---|---|
protected File |
outputFile
The file to output the Rollback SQL script to, if it exists it will be
overwritten.
|
rollbackCount, rollbackDate, rollbackScript, rollbackTag, type
changeLogDirectory, changeLogFile, contexts, duplicateFileMode, hubApiKey, hubMode, hubUrl, labelFilter, labels
changeExecListenerClass, changeExecListenerPropertiesFile, changelogCatalogName, changelogSchemaName, clearCheckSums, commandName, databaseChangeLogLockTableName, databaseChangeLogTableName, databaseClass, defaultCatalogName, defaultChangeExecListener, defaultSchemaName, driver, emptyPassword, includeArtifact, includeTestOutputDirectory, logging, outputDefaultCatalog, outputDefaultSchema, outputFileEncoding, password, preserveSchemaCase, project, promptOnNonLocalDatabase, propertyFile, propertyFileWillOverride, propertyProviderClass, psqlArgs, psqlExecutorName, psqlKeepTemp, psqlKeepTempName, psqlKeepTempPath, psqlLogFile, psqlPath, psqlTimeout, searchPath, showBanner, skip, sqlcmdArgs, sqlcmdCatalogName, sqlcmdExecutorName, sqlcmdKeepTemp, sqlcmdKeepTempName, sqlcmdKeepTempOverwrite, sqlcmdKeepTempPath, sqlcmdLogFile, sqlcmdPath, sqlcmdTimeout, sqlPlusArgs, sqlPlusExecutorName, sqlPlusKeepTemp, sqlPlusKeepTempName, sqlPlusKeepTempOverwrite, sqlPlusKeepTempPath, sqlPlusLogFile, sqlPlusPath, sqlPlusTimeout, systemProperties, url, username, verbose, wagonManager
Constructor and Description |
---|
LiquibaseFutureRollbackSQL() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkRequiredRollbackParameters() |
protected void |
cleanup(Database db) |
protected Liquibase |
createLiquibase(Database db) |
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.
|
checkRequiredParametersAreSpecified, parseDate
getLabelFilter, getResourceAccessor
configureChangeLogProperties, configureFieldsAndValues, databaseConnectionRequired, execute, getClassLoaderIncludingProjectClasspath, getField, getLicenseKey, getLiquibase, getMavenArtifactClassLoader, getOutputWriter, isPromptOnNonLocalDatabase, parsePropertiesFile, setupBindInfoPackage
@PropertyElement protected File outputFile
protected Liquibase createLiquibase(Database db) throws org.apache.maven.plugin.MojoExecutionException
createLiquibase
in class AbstractLiquibaseChangeLogMojo
org.apache.maven.plugin.MojoExecutionException
protected void printSettings(String indent)
AbstractLiquibaseMojo
printSettings
in class LiquibaseRollback
indent
- The indent string to use when printing the settings.protected void cleanup(Database db)
cleanup
in class AbstractLiquibaseMojo
protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException
AbstractLiquibaseChangeLogMojo
Liquibase
.performLiquibaseTask
in class LiquibaseRollback
liquibase
- The Liquibase
that has been fully
configured to run the desired database task.LiquibaseException
protected void checkRequiredRollbackParameters() throws org.apache.maven.plugin.MojoFailureException
checkRequiredRollbackParameters
in class LiquibaseRollback
org.apache.maven.plugin.MojoFailureException
Copyright © 2023 Liquibase.org. All rights reserved.