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