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 java.lang.Object
- implements Command
Constructor Summary |
protected |
BaseCommand(java.io.File repository,
java.lang.String environment,
boolean force)
|
protected |
BaseCommand(java.io.File repository,
java.lang.String environment,
java.lang.String template,
boolean force)
|
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 java.io.PrintStream printStream
basePath
protected java.io.File basePath
envPath
protected java.io.File envPath
scriptPath
protected java.io.File scriptPath
driverPath
protected java.io.File driverPath
environment
protected java.lang.String environment
template
protected java.lang.String template
force
protected boolean force
BaseCommand
protected BaseCommand(java.io.File repository,
java.lang.String environment,
boolean force)
BaseCommand
protected BaseCommand(java.io.File repository,
java.lang.String environment,
java.lang.String template,
boolean force)
getPrintStream
public java.io.PrintStream getPrintStream()
setPrintStream
public void setPrintStream(java.io.PrintStream printStream)
getDriverClassLoader
public java.lang.ClassLoader getDriverClassLoader()
setDriverClassLoader
public void setDriverClassLoader(java.lang.ClassLoader driverClassLoader)
paramsEmpty
protected boolean paramsEmpty(java.lang.String... params)
getMigrations
protected java.util.List<Change> getMigrations()
getChangelog
protected java.util.List<Change> getChangelog()
changelogTable
protected java.lang.String changelogTable()
getLastAppliedChange
protected Change getLastAppliedChange()
changelogExists
protected boolean changelogExists()
horizontalLine
protected java.lang.String horizontalLine(java.lang.String caption,
int length)
getNextIDAsString
protected java.lang.String getNextIDAsString()
copyResourceTo
protected void copyResourceTo(java.lang.String resource,
java.io.File toFile)
copyResourceTo
protected void copyResourceTo(java.lang.String resource,
java.io.File toFile,
java.util.Properties variables)
copyExternalResourceTo
protected void copyExternalResourceTo(java.lang.String resource,
java.io.File toFile,
java.util.Properties variables)
getSqlRunner
protected SqlRunner getSqlRunner()
getScriptRunner
protected ScriptRunner getScriptRunner()
baseFile
protected java.io.File baseFile(java.lang.String fileName)
environmentFile
protected java.io.File environmentFile(java.lang.String fileName)
scriptFile
protected java.io.File scriptFile(java.lang.String fileName)
driverFile
protected java.io.File driverFile(java.lang.String fileName)
environmentFile
protected java.io.File environmentFile()
existingEnvironmentFile
protected java.io.File existingEnvironmentFile()
environmentProperties
protected java.util.Properties environmentProperties()
insertChangelog
protected void insertChangelog(Change change)
generateAppliedTimeStampAsString
protected java.lang.String generateAppliedTimeStampAsString()
getStepCountParameter
protected int getStepCountParameter(int defaultSteps,
java.lang.String... params)
Copyright © 2010 MyBatis.org. All Rights Reserved.