- All Known Implementing Classes:
DefaultScriptRunner
,PostgresScriptRunner
public interface ScriptRunner
SQL script runner.
-
Method Summary
Modifier and TypeMethodDescriptionGets the backend for this script runner.Gets the connection for this script runner.boolean
Returns whether JDBC escape processing is enabled.Runs the SQL script.void
setEscapeProcessingEnabled
(boolean enabled) Enables or disables JDBC escape processing.
-
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
-