Package org.eso.ias.cdb.rdb
Class SqlRunner
java.lang.Object
org.eso.ias.cdb.rdb.SqlRunner
Deprecated.
SqlRunner
runs a SQL script in the RDB server.
OJDBC drivers runs a single SQL statement so the purpose of this class is to split the statements in a script into a sequence of statements to be executed one at a time.
Note: The SQL script can contain comments as they are cleaned by objects of this class. The cleaning is "best effort" i.e. not perfect. For example nested comments are not removed.
- Since:
- v1.0
- Author:
- acaproni
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
runSQLScript
(org.hibernate.Session session) Deprecated.Run the script on the RDB server.
-
Constructor Details
-
SqlRunner
Deprecated.Constructor- Parameters:
reader
- The reader to get the SQL script from
-
SqlRunner
Deprecated.Constructor- Parameters:
sqlScript
- The SQL script to run
-
-
Method Details
-
runSQLScript
public void runSQLScript(org.hibernate.Session session) Deprecated.Run the script on the RDB server.- Parameters:
session
- The Session
-