Package org.liquibase.maven.plugins
Class LiquibaseRollbackOneUpdateSQL
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.liquibase.maven.plugins.AbstractLiquibaseMojo
-
- org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
-
- org.liquibase.maven.plugins.LiquibaseRollbackOneUpdateSQL
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
public class LiquibaseRollbackOneUpdateSQL extends AbstractLiquibaseChangeLogMojo
Displays the SQL which will be executed when the corresponding rollbackOneUpdate command is executed. This command does not perform the actual rollback. A Liquibase Pro license key is required.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdeploymentIdSpecifies the Deployment ID in the DATABASECHANGELOG table for all changesets you want to rollback.protected StringforceRequired flag for RollbackOneChangeSetprotected StringoutputFileSpecifies the path to the generated SQL output file.-
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 LiquibaseRollbackOneUpdateSQL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()protected voidperformLiquibaseTask(liquibase.Liquibase liquibase)Performs the actual Liquibase task on the database using the fully configuredLiquibase.-
Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseChangeLogMojo
checkRequiredParametersAreSpecified, createLiquibase, getLabelFilter, getResourceAccessor, printSettings
-
Methods inherited from class org.liquibase.maven.plugins.AbstractLiquibaseMojo
cleanup, configureChangeLogProperties, configureFieldsAndValues, databaseConnectionRequired, getClassLoaderIncludingProjectClasspath, getField, getLicenseKey, getLiquibase, getLog, getMavenArtifactClassLoader, getOutputStream, getOutputWriter, isPromptOnNonLocalDatabase, parsePropertiesFile, setPassword, setupBindInfoPackage, setUrl, setUsername
-
-
-
-
Field Detail
-
deploymentId
@PropertyElement protected String deploymentId
Specifies the Deployment ID in the DATABASECHANGELOG table for all changesets you want to rollback.
-
force
@PropertyElement protected String force
Required flag for RollbackOneChangeSet
-
outputFile
@PropertyElement protected String outputFile
Specifies the path to the generated SQL output file.
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractLiquibaseMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
performLiquibaseTask
protected void performLiquibaseTask(liquibase.Liquibase liquibase) throws liquibase.exception.LiquibaseExceptionDescription copied from class:AbstractLiquibaseChangeLogMojoPerforms the actual Liquibase task on the database using the fully configuredLiquibase.- Overrides:
performLiquibaseTaskin classAbstractLiquibaseChangeLogMojo- Parameters:
liquibase- TheLiquibasethat has been fully configured to run the desired database task.- Throws:
liquibase.exception.LiquibaseException
-
-