Interface ScriptRunner

All Known Implementing Classes:
DefaultScriptRunner, PostgresScriptRunner

public interface ScriptRunner
SQL script runner.
  • Method Details

    • getBackend

      Backend getBackend()
      Gets the backend for this script runner.
      Returns:
      the backend
    • getConnection

      Connection getConnection()
      Gets the connection for this script runner.
      Returns:
      the connection
    • setEscapeProcessingEnabled

      void setEscapeProcessingEnabled(boolean enabled)
      Enables or disables JDBC escape processing.
      Parameters:
      enabled - true if escape processing is enabled
      See Also:
    • isEscapeProcessingEnabled

      boolean isEscapeProcessingEnabled()
      Returns whether JDBC escape processing is enabled.
      Returns:
      true if enabled (default)
    • run

      Runs the SQL script.

      Throws BackendException if script execution failed.

      Parameters:
      script - the SQL script
      Returns:
      the results, never null