Package org.ametys.core.script
Class SQLScriptHelper.ScriptContext
java.lang.Object
org.ametys.core.script.SQLScriptHelper.ScriptContext
- Enclosing class:
- SQLScriptHelper
Script execution context.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
True to ignore sql exceptions.protected String
The current script execution block separator. -
Constructor Summary
ConstructorDescriptionDefault ScriptContext object.ScriptContext
(String separator, boolean ignoreExceptions) Build a ScriptContext object. -
Method Summary
Modifier and TypeMethodDescriptionGet the separator.boolean
Get the ignoreExceptions.void
setIgnoreExceptions
(boolean ignoreExceptions) Set the ignoreExceptions.void
setSeparator
(String separator) Set the separator.
-
Field Details
-
_separator
The current script execution block separator. -
_ignoreExceptions
True to ignore sql exceptions.
-
-
Constructor Details
-
ScriptContext
public ScriptContext()Default ScriptContext object. -
ScriptContext
Build a ScriptContext object.- Parameters:
separator
- the separatorignoreExceptions
- true to ignore exceptions.
-
-
Method Details
-
getSeparator
Get the separator.- Returns:
- the separator
-
setSeparator
Set the separator.- Parameters:
separator
- the separator to set
-
ignoreExceptions
Get the ignoreExceptions.- Returns:
- the ignoreExceptions
-
setIgnoreExceptions
Set the ignoreExceptions.- Parameters:
ignoreExceptions
- the ignoreExceptions to set
-