Class LiquibaseRollbackOneUpdateSQL

java.lang.Object
org.apache.maven.plugin.AbstractMojo
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 Details

    • 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.
  • Constructor Details

    • LiquibaseRollbackOneUpdateSQL

      public LiquibaseRollbackOneUpdateSQL()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class AbstractLiquibaseMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • performLiquibaseTask

      protected void performLiquibaseTask(liquibase.Liquibase liquibase) throws liquibase.exception.LiquibaseException
      Description copied from class: AbstractLiquibaseChangeLogMojo
      Performs the actual Liquibase task on the database using the fully configured Liquibase.
      Overrides:
      performLiquibaseTask in class AbstractLiquibaseChangeLogMojo
      Parameters:
      liquibase - The Liquibase that has been fully configured to run the desired database task.
      Throws:
      liquibase.exception.LiquibaseException