Class BaseCommand
java.lang.Object
org.apache.ibatis.migration.commands.BaseCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
BootstrapCommand
,DownCommand
,InitializeCommand
,NewCommand
,PendingCommand
,RedoCommand
,ScriptCommand
,StatusCommand
,UpCommand
,VersionCommand
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected final SelectedOptions
protected final SelectedPaths
protected PrintStream
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected void
copyExternalResourceTo
(String resource, File toFile, Properties variables) protected void
copyResourceTo
(String resource, File toFile) protected void
copyResourceTo
(String resource, File toFile, Properties variables) protected static void
copyTemplate
(File templateFile, File toFile, Properties variables) protected static void
copyTemplate
(Reader templateReader, File toFile, Properties variables) protected MigrationHook
protected MigrationHook
createFileMigrationHook
(String before, String beforeEach, String afterEach, String after) protected MigrationHook
protected Environment
protected File
protected File
protected ConnectionProvider
protected DatabaseOperationOption
protected MigrationLoader
protected String
protected int
getStepCountParameter
(int defaultSteps, String... params) protected boolean
paramsEmpty
(String... params) void
setDriverClassLoader
(ClassLoader aDriverClassLoader) void
setPrintStream
(PrintStream aPrintStream)
-
Field Details
-
DESC_CREATE_CHANGELOG
- See Also:
-
printStream
-
options
-
paths
-
-
Constructor Details
-
BaseCommand
-
-
Method Details
-
setDriverClassLoader
-
setPrintStream
-
paramsEmpty
-
changelogTable
-
getNextIDAsString
-
copyResourceTo
-
copyResourceTo
-
copyExternalResourceTo
-
copyTemplate
protected static void copyTemplate(File templateFile, File toFile, Properties variables) throws IOException - Throws:
IOException
-
copyTemplate
protected static void copyTemplate(Reader templateReader, File toFile, Properties variables) throws IOException - Throws:
IOException
-
environmentFile
-
existingEnvironmentFile
-
environment
-
getStepCountParameter
-
getConnectionProvider
-
getMigrationLoader
-
createUpHook
-
createDownHook
-
createFileMigrationHook
protected MigrationHook createFileMigrationHook(String before, String beforeEach, String afterEach, String after) -
getDatabaseOperationOption
-