Class 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.

    • Field Detail

      • outputFile

        @PropertyElement
        protected File outputFile
        The file to output the Rollback SQL script to, if it exists it will be overwritten.
    • Constructor Detail

      • LiquibaseFutureRollbackSQL

        public LiquibaseFutureRollbackSQL()
    • Method Detail

      • createLiquibase

        protected liquibase.Liquibase createLiquibase​(liquibase.database.Database db)
                                               throws org.apache.maven.plugin.MojoExecutionException
        Overrides:
        createLiquibase in class AbstractLiquibaseChangeLogMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • 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 LiquibaseRollback
        Parameters:
        indent - The indent string to use when printing the settings.
      • 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 LiquibaseRollback
        Parameters:
        liquibase - The Liquibase that has been fully configured to run the desired database task.
        Throws:
        liquibase.exception.LiquibaseException
      • checkRequiredRollbackParameters

        protected void checkRequiredRollbackParameters()
                                                throws org.apache.maven.plugin.MojoFailureException
        Overrides:
        checkRequiredRollbackParameters in class LiquibaseRollback
        Throws:
        org.apache.maven.plugin.MojoFailureException