com.agimatec.sql.script
Class SQLScriptExecutor

java.lang.Object
  extended by com.agimatec.sql.script.SQLScriptExecutor
All Implemented Interfaces:
ScriptVisitor

public class SQLScriptExecutor
extends Object
implements ScriptVisitor


Field Summary
protected static org.apache.commons.logging.Log mySQLLogger
           
 
Constructor Summary
SQLScriptExecutor(JdbcDatabase aStore)
           
 
Method Summary
 void doCommit()
           
 void doRollback()
           
protected  Connection getConnection()
           
 void log(Object obj)
           
 void visitComment(String theComment)
           
 int visitStatement(String statement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mySQLLogger

protected static final org.apache.commons.logging.Log mySQLLogger
Constructor Detail

SQLScriptExecutor

public SQLScriptExecutor(JdbcDatabase aStore)
Method Detail

getConnection

protected Connection getConnection()

visitStatement

public int visitStatement(String statement)
                   throws SQLException
Specified by:
visitStatement in interface ScriptVisitor
Throws:
SQLException

visitComment

public void visitComment(String theComment)
Specified by:
visitComment in interface ScriptVisitor

doCommit

public void doCommit()
              throws SQLException
Specified by:
doCommit in interface ScriptVisitor
Throws:
SQLException

doRollback

public void doRollback()
                throws SQLException
Specified by:
doRollback in interface ScriptVisitor
Throws:
SQLException

log

public void log(Object obj)


Copyright © 2008-2011. All Rights Reserved.