Class ScriptBase

java.lang.Object
org.h2.command.Prepared
org.h2.command.dml.ScriptBase
Direct Known Subclasses:
RunScriptCommand, ScriptCommand

abstract class ScriptBase extends Prepared
This class is the base for RunScriptCommand and ScriptCommand.
  • Field Details

    • SCRIPT_SQL

      private static final String SCRIPT_SQL
      The default name of the script file if .zip compression is used.
      See Also:
    • out

      protected OutputStream out
      The output stream.
    • reader

      protected BufferedReader reader
      The input reader.
    • fileNameExpr

      private Expression fileNameExpr
      The file name (if set).
    • password

      private Expression password
    • fileName

      private String fileName
    • cipher

      private String cipher
    • store

      private FileStore store
    • compressionAlgorithm

      private String compressionAlgorithm
  • Constructor Details

  • Method Details

    • setCipher

      public void setCipher(String c)
    • isEncrypted

      private boolean isEncrypted()
    • setPassword

      public void setPassword(Expression password)
    • setFileNameExpr

      public void setFileNameExpr(Expression file)
    • getFileName

      protected String getFileName()
    • isTransactional

      public boolean isTransactional()
      Description copied from class: Prepared
      Check if this command is transactional. If it is not, then it forces the current transaction to commit.
      Specified by:
      isTransactional in class Prepared
      Returns:
      true if it is
    • deleteStore

      void deleteStore()
      Delete the target file.
    • initStore

      private void initStore()
    • openOutput

      void openOutput()
      Open the output stream.
    • openInput

      void openInput(Charset charset)
      Open the input stream.
      Parameters:
      charset - the charset to use
    • closeIO

      void closeIO()
      Close input and output streams.
    • needRecompile

      public boolean needRecompile()
      Description copied from class: Prepared
      Check if the statement needs to be re-compiled.
      Overrides:
      needRecompile in class Prepared
      Returns:
      true if it must
    • setCompressionAlgorithm

      public void setCompressionAlgorithm(String algorithm)