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
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected final SelectedOptionsprotected final SelectedPathsprotected PrintStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected voidcopyExternalResourceTo(String resource, File toFile, Properties variables) protected voidcopyResourceTo(String resource, File toFile) protected voidcopyResourceTo(String resource, File toFile, Properties variables) protected static voidcopyTemplate(File templateFile, File toFile, Properties variables) protected static voidcopyTemplate(Reader templateReader, File toFile, Properties variables) protected MigrationHookprotected MigrationHookcreateFileMigrationHook(String before, String beforeEach, String afterEach, String after) protected MigrationHookprotected Environmentprotected Fileprotected Fileprotected ConnectionProviderprotected DatabaseOperationOptionprotected MigrationLoaderprotected Stringprotected intgetStepCountParameter(int defaultSteps, String... params) protected booleanparamsEmpty(String... params) voidsetDriverClassLoader(ClassLoader aDriverClassLoader) voidsetPrintStream(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
-