Class JavaMigrationLoader

    • Constructor Summary

      Constructors 
      Constructor Description
      JavaMigrationLoader​(java.lang.ClassLoader classLoader, java.lang.String... packageNames)  
      JavaMigrationLoader​(java.lang.String... packageNames)  
    • Constructor Detail

      • JavaMigrationLoader

        public JavaMigrationLoader​(java.lang.String... packageNames)
      • JavaMigrationLoader

        public JavaMigrationLoader​(java.lang.ClassLoader classLoader,
                                   java.lang.String... packageNames)
    • Method Detail

      • getMigrations

        public java.util.List<Change> getMigrations()
        Specified by:
        getMigrations in interface MigrationLoader
        Returns:
        A list of migrations (bootstrap should NOT be included).
      • getScriptReader

        public java.io.Reader getScriptReader​(Change change,
                                              boolean undo)
        Specified by:
        getScriptReader in interface MigrationLoader
        Parameters:
        change - identifies the migration to read.
        undo - whether the caller requests UNDO SQL script or not.
        Returns:
        A Reader of the specified SQL script.
      • getBootstrapReader

        public java.io.Reader getBootstrapReader()
        Specified by:
        getBootstrapReader in interface MigrationLoader
        Returns:
        A Reader of the bootstrap SQL script.
      • getOnAbortReader

        public java.io.Reader getOnAbortReader()
        Specified by:
        getOnAbortReader in interface MigrationLoader
        Returns:
        A Reader of the onabort SQL script.
      • getSoleScriptReader

        public <T extends SimpleScript> java.io.Reader getSoleScriptReader​(java.lang.Class<T> scriptClass)