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

public abstract class BaseCommand extends Object implements Command
  • Field Details

  • Constructor Details

  • Method Details

    • setDriverClassLoader

      public void setDriverClassLoader(ClassLoader aDriverClassLoader)
    • setPrintStream

      public void setPrintStream(PrintStream aPrintStream)
    • paramsEmpty

      protected boolean paramsEmpty(String... params)
    • changelogTable

      protected String changelogTable()
    • getNextIDAsString

      protected String getNextIDAsString()
    • copyResourceTo

      protected void copyResourceTo(String resource, File toFile)
    • copyResourceTo

      protected void copyResourceTo(String resource, File toFile, Properties variables)
    • copyExternalResourceTo

      protected void copyExternalResourceTo(String resource, File toFile, Properties variables)
    • 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

      protected File environmentFile()
    • existingEnvironmentFile

      protected File existingEnvironmentFile()
    • environment

      protected Environment environment()
    • getStepCountParameter

      protected int getStepCountParameter(int defaultSteps, String... params)
    • getConnectionProvider

      protected ConnectionProvider getConnectionProvider()
    • getMigrationLoader

      protected MigrationLoader getMigrationLoader()
    • createUpHook

      protected MigrationHook createUpHook()
    • createDownHook

      protected MigrationHook createDownHook()
    • createFileMigrationHook

      protected MigrationHook createFileMigrationHook(String before, String beforeEach, String afterEach, String after)
    • getDatabaseOperationOption

      protected DatabaseOperationOption getDatabaseOperationOption()