org.apache.ibatis.migration.commands
Class InitializeCommand

java.lang.Object
  extended by org.apache.ibatis.migration.commands.BaseCommand
      extended by org.apache.ibatis.migration.commands.InitializeCommand
All Implemented Interfaces:
Command

public class InitializeCommand
extends BaseCommand


Field Summary
 
Fields inherited from class org.apache.ibatis.migration.commands.BaseCommand
basePath, driverPath, environment, envPath, force, printStream, scriptPath, template
 
Constructor Summary
InitializeCommand(java.io.File repository, java.lang.String environment, boolean force)
           
 
Method Summary
protected  void createDirectoryIfNecessary(java.io.File path)
           
protected  void ensureDirectoryIsEmpty(java.io.File path)
           
 void execute(java.lang.String... args)
           
 
Methods inherited from class org.apache.ibatis.migration.commands.BaseCommand
baseFile, changelogExists, changelogTable, copyExternalResourceTo, copyResourceTo, copyResourceTo, driverFile, environmentFile, environmentFile, environmentProperties, existingEnvironmentFile, generateAppliedTimeStampAsString, getChangelog, getDriverClassLoader, getLastAppliedChange, getMigrations, getNextIDAsString, getPrintStream, getScriptRunner, getSqlRunner, getStepCountParameter, horizontalLine, insertChangelog, paramsEmpty, scriptFile, setDriverClassLoader, setPrintStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitializeCommand

public InitializeCommand(java.io.File repository,
                         java.lang.String environment,
                         boolean force)
Method Detail

execute

public void execute(java.lang.String... args)

ensureDirectoryIsEmpty

protected void ensureDirectoryIsEmpty(java.io.File path)

createDirectoryIfNecessary

protected void createDirectoryIfNecessary(java.io.File path)


Copyright © 2010 MyBatis.org. All Rights Reserved.