Package org.apache.ibatis.migration
Class FileMigrationLoader
java.lang.Object
org.apache.ibatis.migration.FileMigrationLoader
- All Implemented Interfaces:
MigrationLoader
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
protected final File
protected final Properties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetScriptReader
(Change change, boolean undo) protected Reader
getSoleScriptReader
(String fileName) protected boolean
isSpecialFile
(String filename) protected Change
parseChangeFromFilename
(String filename)
-
Field Details
-
scriptsDir
-
charset
-
variables
-
-
Constructor Details
-
FileMigrationLoader
-
-
Method Details
-
getMigrations
- Specified by:
getMigrations
in interfaceMigrationLoader
- Returns:
- A list of migrations (bootstrap should NOT be included).
-
isSpecialFile
-
parseChangeFromFilename
-
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
-