com.finalist.tools.statementExecutorUtils
Class SqlScriptReader

java.lang.Object
  extended bycom.finalist.tools.statementExecutorUtils.SqlScriptReader

public class SqlScriptReader
extends java.lang.Object

This class loads a .sql file and executes the queries in this file

Author:
Freek Punt, Hillebrand Gelderblom

Constructor Summary
SqlScriptReader()
           
 
Method Summary
static java.util.ArrayList read(java.io.InputStream is)
          Loads the scriptfile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlScriptReader

public SqlScriptReader()
Method Detail

read

public static java.util.ArrayList read(java.io.InputStream is)
                                throws java.io.IOException
Loads the scriptfile

Parameters:
is - InputSteam of the sql script file.
Returns:
An arraylist of queries. Each query is a String object.
Throws:
java.io.IOException - is thrown when something goes wrong.


Copyright © 2003-2004 SourceForge. All Rights Reserved.