Class Script

All Implemented Interfaces:
Closeable, AutoCloseable, Configurable<Script>

public class Script extends SqlStatement<Script>
Represents a number of SQL statements delimited by semicolon which will be executed in order in a batch statement.
  • Constructor Details

  • Method Details

    • execute

      public int[] execute()
      Execute this script in a batch statement
      Returns:
      an array of ints which are the results of each statement in the script
    • executeAsSeparateStatements

      public void executeAsSeparateStatements()
      Execute this script as a set of separate statements
    • getStatements

      public List<String> getStatements()
      Locate the Script and split it into statements.
      Returns:
      the split statements
    • splitToStatements

      private List<String> splitToStatements(String script)
    • addStatement

      private void addStatement(String statement, List<String> statements)