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
 
Constructor Summary
InitializeCommand(File repository, String environment, boolean force)
           
 
Method Summary
protected  void createDirectoryIfNecessary(File path)
           
protected  void ensureDirectoryIsEmpty(File path)
           
 void execute(String... args)
           
 
Methods inherited from class org.apache.ibatis.migration.commands.BaseCommand
baseFile, changelogExists, changelogTable, 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(File repository,
                         String environment,
                         boolean force)
Method Detail

execute

public void execute(String... args)

ensureDirectoryIsEmpty

protected void ensureDirectoryIsEmpty(File path)

createDirectoryIfNecessary

protected void createDirectoryIfNecessary(File path)


Copyright © 2010. All Rights Reserved.