org.dbmaintain.script.runner.impl.db2
Class Db2ScriptRunner
java.lang.Object
org.dbmaintain.script.runner.impl.BaseNativeScriptRunner
org.dbmaintain.script.runner.impl.db2.Db2ScriptRunner
- All Implemented Interfaces:
- ScriptRunner
public class Db2ScriptRunner
- extends BaseNativeScriptRunner
todo javadoc
- Author:
- Tim Ducheyne, Filip Neven
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
application
protected Application application
db2ConnectionInfos
protected Map<Database,Db2ConnectionInfo> db2ConnectionInfos
Db2ScriptRunner
public Db2ScriptRunner(Databases databases,
String db2Command)
initialize
public void initialize()
- Description copied from interface:
ScriptRunner
- Initializes the script runner.
- Specified by:
initialize
in interface ScriptRunner
- Overrides:
initialize
in class BaseNativeScriptRunner
close
public void close()
- Description copied from interface:
ScriptRunner
- Stops the script runner, closing and cleaning up all open resources.
- Specified by:
close
in interface ScriptRunner
- Overrides:
close
in class BaseNativeScriptRunner
terminateDb2Connections
protected void terminateDb2Connections()
registerDatabase
protected void registerDatabase(Db2ConnectionInfo db2ConnectionInfo)
unregisterDatabaseQuietly
protected void unregisterDatabaseQuietly(Db2ConnectionInfo db2ConnectionInfo)
unregisterDatabase
protected void unregisterDatabase(Db2ConnectionInfo db2ConnectionInfo)
executeScript
protected void executeScript(File scriptFile,
Database targetDatabase)
throws Exception
- Specified by:
executeScript
in class BaseNativeScriptRunner
- Throws:
Exception
executeCommand
protected void executeCommand(String... command)
executeCommand
protected void executeCommand(boolean logCommand,
String... command)
createApplication
protected Application createApplication(String db2Command)
getDb2ConnectionInfos
protected Map<Database,Db2ConnectionInfo> getDb2ConnectionInfos(Databases databases)
Copyright © 2011. All Rights Reserved.