net.sourceforge.addam.ddlrun.runners
Class JDBCScriptRunner
java.lang.Object
net.sourceforge.addam.ddlrun.runners.JDBCScriptRunner
- All Implemented Interfaces:
- Runner
public class JDBCScriptRunner
- extends Object
- implements Runner
Used to run a single SQL script.
- Since:
- Mar 5, 2005
- Author:
- TIM3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
readerFactory
private final ResourceReaderFactory readerFactory
grammar
private final ScriptGrammar grammar
statementRunner
private final Runner statementRunner
JDBCScriptRunner
public JDBCScriptRunner(ResourceReaderFactory readerFactory,
ScriptGrammar grammar,
Runner statementRunner)
- Constructs a JDBCScriptRunner.
- Parameters:
readerFactory
- used to locate and read scriptsgrammar
- used to parse the SQL filestatementRunner
- used to run individual statements
run
public void run(String resource)
throws Exception
- Specified by:
run
in interface Runner
- Throws:
Exception
runStatement
private void runStatement(String statement)
throws Exception
- Throws:
Exception
Copyright © 2005-2006 ADDAM Project Team. All Rights Reserved.