Class RunScriptCommand


public class RunScriptCommand extends ScriptBase
This class represents the statement RUNSCRIPT
  • Field Details

    • UTF8_BOM

      private static final char UTF8_BOM
      The byte order mark. 0xfeff because this is the Unicode char represented by the UTF-8 byte order mark (EF BB BF).
      See Also:
    • charset

      private Charset charset
    • quirksMode

      private boolean quirksMode
    • variableBinary

      private boolean variableBinary
    • from1X

      private boolean from1X
  • Constructor Details

    • RunScriptCommand

      public RunScriptCommand(SessionLocal session)
  • Method Details

    • update

      public long update()
      Description copied from class: Prepared
      Execute the statement.
      Overrides:
      update in class Prepared
      Returns:
      the update count
    • execute

      private void execute(String sql)
    • setCharset

      public void setCharset(Charset charset)
    • setQuirksMode

      public void setQuirksMode(boolean quirksMode)
      Enables or disables the quirks mode.
      Parameters:
      quirksMode - whether quirks mode should be enabled
    • setVariableBinary

      public void setVariableBinary(boolean variableBinary)
      Changes parsing of a BINARY data type.
      Parameters:
      variableBinary - true to parse BINARY as VARBINARY, false to parse it as is
    • setFrom1X

      public void setFrom1X()
      Enables quirks for parsing scripts from H2 1.*.*.
    • queryMeta

      public ResultInterface queryMeta()
      Description copied from class: Prepared
      Get an empty result set containing the meta data.
      Specified by:
      queryMeta in class Prepared
      Returns:
      the result set
    • getType

      public int getType()
      Description copied from class: Prepared
      Get the command type as defined in CommandInterface
      Specified by:
      getType in class Prepared
      Returns:
      the statement type