Class LiquibaseRollbackOneChangeSetSQL

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class LiquibaseRollbackOneChangeSetSQL extends AbstractLiquibaseChangeLogMojo
Displays the SQL which will be executed when the corresponding rollbackOneChangeSet command is executed. This command does not perform the actual rollback. A Liquibase Pro license key is required.
  • Field Details

    • changeSetId

      @PropertyElement protected String changeSetId
      The changeset ID to rollback
    • changeSetAuthor

      @PropertyElement protected String changeSetAuthor
      Specifies the author of the changeSet you want to rollback.
    • changeSetPath

      @PropertyElement protected String changeSetPath
      Specifies the path to the changelog which contains the change-set you want to rollback.
    • rollbackScript

      @PropertyElement protected String rollbackScript
      Specifies the path to a rollback script
    • outputFile

      @PropertyElement protected String outputFile
      Specifies the path to the generated SQL output file.
  • Constructor Details

    • LiquibaseRollbackOneChangeSetSQL

      public LiquibaseRollbackOneChangeSetSQL()
  • Method Details

    • printSettings

      protected void printSettings(String indent)
      Description copied from class: AbstractLiquibaseMojo
      Prints the settings that have been set of defaulted for the plugin. These will only be shown in verbose mode.
      Overrides:
      printSettings in class AbstractLiquibaseChangeLogMojo
      Parameters:
      indent - The indent string to use when printing the settings.
    • 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