org.dbmaintain.script.runner
Interface ScriptRunner

All Known Implementing Classes:
BaseNativeScriptRunner, Db2ScriptRunner, JdbcScriptRunner, SqlPlusScriptRunner

public interface ScriptRunner

Runs a given database script.

Make sure to call initialize() before and close() after usage.

Author:
Filip Neven, Tim Ducheyne

Method Summary
 void close()
          Stops the script runner, closing and cleaning up all open resources.
 void execute(Script script)
          Executes the given script
 void initialize()
          Initializes the script runner.
 

Method Detail

execute

void execute(Script script)
Executes the given script

Parameters:
script - A handle that provides access to the content of the script, not null

initialize

void initialize()
Initializes the script runner.


close

void close()
Stops the script runner, closing and cleaning up all open resources.



Copyright © 2011. All Rights Reserved.