Class SqlRunner

java.lang.Object
org.eso.ias.cdb.rdb.SqlRunner

@Deprecated public class SqlRunner extends Object
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 Details

    • SqlRunner

      public SqlRunner(Reader reader)
      Deprecated.
      Constructor
      Parameters:
      reader - The reader to get the SQL script from
    • SqlRunner

      public SqlRunner(String sqlScript)
      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