org.apache.ibatis.migration.commands
Class BaseCommand
java.lang.Object
org.apache.ibatis.migration.commands.BaseCommand
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- BootstrapCommand, DownCommand, InitializeCommand, NewCommand, PendingCommand, ScriptCommand, StatusCommand, UpCommand, VersionCommand
public abstract class BaseCommand
- extends Object
- implements Command
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.ibatis.migration.commands.Command |
execute |
printStream
protected PrintStream printStream
basePath
protected File basePath
envPath
protected File envPath
scriptPath
protected File scriptPath
driverPath
protected File driverPath
environment
protected String environment
force
protected boolean force
BaseCommand
protected BaseCommand(File repository,
String environment,
boolean force)
getPrintStream
public PrintStream getPrintStream()
setPrintStream
public void setPrintStream(PrintStream printStream)
getDriverClassLoader
public ClassLoader getDriverClassLoader()
setDriverClassLoader
public void setDriverClassLoader(ClassLoader driverClassLoader)
paramsEmpty
protected boolean paramsEmpty(String... params)
getMigrations
protected List<Change> getMigrations()
getChangelog
protected List<Change> getChangelog()
changelogTable
protected String changelogTable()
getLastAppliedChange
protected Change getLastAppliedChange()
changelogExists
protected boolean changelogExists()
horizontalLine
protected String horizontalLine(String caption,
int length)
getNextIDAsString
protected String getNextIDAsString()
copyResourceTo
protected void copyResourceTo(String resource,
File toFile)
copyResourceTo
protected void copyResourceTo(String resource,
File toFile,
Properties variables)
getSqlRunner
protected SqlRunner getSqlRunner()
getScriptRunner
protected ScriptRunner getScriptRunner()
baseFile
protected File baseFile(String fileName)
environmentFile
protected File environmentFile(String fileName)
scriptFile
protected File scriptFile(String fileName)
driverFile
protected File driverFile(String fileName)
environmentFile
protected File environmentFile()
existingEnvironmentFile
protected File existingEnvironmentFile()
environmentProperties
protected Properties environmentProperties()
insertChangelog
protected void insertChangelog(Change change)
generateAppliedTimeStampAsString
protected String generateAppliedTimeStampAsString()
getStepCountParameter
protected int getStepCountParameter(int defaultSteps,
String... params)
Copyright © 2010. All Rights Reserved.