corelib.utilities.jdbc
Class SqlFileExecutor

java.lang.Object
  extended by corelib.utilities.jdbc.SqlFileExecutor

public class SqlFileExecutor
extends java.lang.Object

This class permit to execute a SQL script file into a database.

Since:
0.4.1
Author:
Dominique Liard

Constructor Summary
SqlFileExecutor(java.sql.Connection connection, java.lang.String sqlScriptFilename)
          Class constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlFileExecutor

public SqlFileExecutor(java.sql.Connection connection,
                       java.lang.String sqlScriptFilename)
                throws java.sql.SQLException,
                       java.io.FileNotFoundException,
                       java.io.IOException
Class constructor.

Parameters:
connection - The JDBC connection used for execute the SQL script file.
sqlScriptFilename - The path of the file to execute.
Throws:
java.sql.SQLException - Thrown if a SQL statement cannot be executed into the database.
java.io.FileNotFoundException - Thrown if the SQL file cannot be found.
java.io.IOException - Throws if the SQL file cannot readed.


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.