org.controlhaus.hibernate.util
Class BatchSqlCommandRunner

java.lang.Object
  extended by org.controlhaus.hibernate.util.BatchSqlCommandRunner

public class BatchSqlCommandRunner
extends java.lang.Object

Author:
Chuck Burdick, Jim Burke

Constructor Summary
BatchSqlCommandRunner(java.sql.Connection conn)
           
BatchSqlCommandRunner(java.sql.Statement stmt)
           
 
Method Summary
 void close()
           
protected  boolean isInQuotes(java.lang.String line, boolean inQuotes)
          loop through all the quotes in the line to see if we are within a string literal
protected  java.lang.String readCommand(java.io.BufferedReader reader)
           
protected  java.lang.String readLine(java.io.BufferedReader reader)
           
 void runCommands(java.io.BufferedReader reader)
           
 void runCommands(java.io.InputStream in)
           
 void runCommands(java.lang.String resourceLoc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchSqlCommandRunner

public BatchSqlCommandRunner(java.sql.Statement stmt)

BatchSqlCommandRunner

public BatchSqlCommandRunner(java.sql.Connection conn)
                      throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

close

public void close()

readLine

protected java.lang.String readLine(java.io.BufferedReader reader)
                             throws java.io.IOException
Throws:
java.io.IOException

readCommand

protected java.lang.String readCommand(java.io.BufferedReader reader)
                                throws java.io.IOException
Throws:
java.io.IOException

isInQuotes

protected boolean isInQuotes(java.lang.String line,
                             boolean inQuotes)
loop through all the quotes in the line to see if we are within a string literal


runCommands

public void runCommands(java.lang.String resourceLoc)
                 throws java.io.IOException,
                        java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

runCommands

public void runCommands(java.io.InputStream in)
                 throws java.io.IOException,
                        java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

runCommands

public void runCommands(java.io.BufferedReader reader)
                 throws java.io.IOException,
                        java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException


Copyright © 2004-2005 Controlhaus. All Rights Reserved.