Package org.apache.ibatis.migration
Class JavaMigrationLoader
java.lang.Object
org.apache.ibatis.migration.JavaMigrationLoader
- All Implemented Interfaces:
MigrationLoader
-
Constructor Summary
ConstructorsConstructorDescriptionJavaMigrationLoader(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:
getMigrationsin interfaceMigrationLoader- Returns:
- A list of migrations (bootstrap should NOT be included).
-
getScriptReader
- Specified by:
getScriptReaderin interfaceMigrationLoader- Parameters:
change- identifies the migration to read.undo- whether the caller requests UNDO SQL script or not.- Returns:
- A
Readerof the specified SQL script.
-
getBootstrapReader
- Specified by:
getBootstrapReaderin interfaceMigrationLoader- Returns:
- A
Readerof the bootstrap SQL script.
-
getOnAbortReader
- Specified by:
getOnAbortReaderin interfaceMigrationLoader- Returns:
- A
Readerof the onabort SQL script.
-
getSoleScriptReader
-