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