Class AbsoluteToRelativePaths

  • All Implemented Interfaces:
    liquibase.change.custom.CustomChange, liquibase.change.custom.CustomSqlChange

    public class AbsoluteToRelativePaths
    extends java.lang.Object
    implements liquibase.change.custom.CustomSqlChange
    Custom SQL change converting absolute paths to relative in the database
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      liquibase.statement.SqlStatement[] generateStatements​(liquibase.database.Database database)  
      java.lang.String getConfirmationMessage()  
      void setFileOpener​(liquibase.resource.ResourceAccessor resourceAccessor)  
      void setUp()  
      liquibase.exception.ValidationErrors testRelativePaths()
      Check that files exist in expected locations
      liquibase.exception.ValidationErrors validate​(liquibase.database.Database database)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbsoluteToRelativePaths

        public AbsoluteToRelativePaths()
    • Method Detail

      • getConfirmationMessage

        public java.lang.String getConfirmationMessage()
        Specified by:
        getConfirmationMessage in interface liquibase.change.custom.CustomChange
      • setUp

        public void setUp()
                   throws liquibase.exception.SetupException
        Specified by:
        setUp in interface liquibase.change.custom.CustomChange
        Throws:
        liquibase.exception.SetupException
      • setFileOpener

        public void setFileOpener​(liquibase.resource.ResourceAccessor resourceAccessor)
        Specified by:
        setFileOpener in interface liquibase.change.custom.CustomChange
      • validate

        public liquibase.exception.ValidationErrors validate​(liquibase.database.Database database)
        Specified by:
        validate in interface liquibase.change.custom.CustomChange
      • testRelativePaths

        public liquibase.exception.ValidationErrors testRelativePaths()
        Check that files exist in expected locations
        Returns:
        Any validation errors
      • generateStatements

        public liquibase.statement.SqlStatement[] generateStatements​(liquibase.database.Database database)
                                                              throws liquibase.exception.CustomChangeException
        Specified by:
        generateStatements in interface liquibase.change.custom.CustomSqlChange
        Throws:
        liquibase.exception.CustomChangeException