Class Script

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

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

  • Method Details

    • execute

      public int[] execute()
      Execute this script in a batch statement
      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.
      the split statements
    • getHandle

      public Handle getHandle()
    • getConfig

      public ConfigRegistry getConfig()
      Description copied from interface: Configurable
      Returns the configuration registry associated with this object.
      Specified by:
      getConfig in interface Configurable<This>
      the configuration registry associated with this object.
    • getContext

      public final StatementContext getContext()
      the statement context associated with this statement
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable