Package org.apache.ibatis.migration
Class JavaMigrationLoader
java.lang.Object
org.apache.ibatis.migration.JavaMigrationLoader
- All Implemented Interfaces:
MigrationLoader
-
Constructor Summary
ConstructorDescriptionJavaMigrationLoader
(ClassLoader classLoader, String... packageNames) JavaMigrationLoader
(String... packageNames) -
Method Summary
Modifier and TypeMethodDescriptiongetScriptReader
(Change change, boolean undo) <T extends SimpleScript>
ReadergetSoleScriptReader
(Class<T> scriptClass)
-
Constructor Details
-
JavaMigrationLoader
-
JavaMigrationLoader
-
-
Method Details
-
getMigrations
- Specified by:
getMigrations
in interfaceMigrationLoader
- Returns:
- A list of migrations (bootstrap should NOT be included).
-
getScriptReader
- Specified by:
getScriptReader
in interfaceMigrationLoader
- 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
- Specified by:
getBootstrapReader
in interfaceMigrationLoader
- Returns:
- A
Reader
of the bootstrap SQL script.
-
getOnAbortReader
- Specified by:
getOnAbortReader
in interfaceMigrationLoader
- Returns:
- A
Reader
of the onabort SQL script.
-
getSoleScriptReader
-