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 Details

    • _separator

      protected String _separator
      The current script execution block separator.
    • _ignoreExceptions

      protected boolean _ignoreExceptions
      True to ignore sql exceptions.
  • Constructor Details

    • ScriptContext

      public ScriptContext()
      Default ScriptContext object.
    • ScriptContext

      public ScriptContext(String separator, boolean ignoreExceptions)
      Build a ScriptContext object.
      Parameters:
      separator - the separator
      ignoreExceptions - true to ignore exceptions.
  • Method Details

    • 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