Class ScriptBase

    • Field Detail

      • SCRIPT_SQL

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

        protected java.io.OutputStream out
        The output stream.
      • reader

        protected java.io.BufferedReader reader
        The input reader.
      • fileNameExpr

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

        private java.lang.String fileName
      • cipher

        private java.lang.String cipher
      • compressionAlgorithm

        private java.lang.String compressionAlgorithm
    • Method Detail

      • setCipher

        public void setCipher​(java.lang.String c)
      • isEncrypted

        private boolean isEncrypted()
      • setPassword

        public void setPassword​(Expression password)
      • setFileNameExpr

        public void setFileNameExpr​(Expression file)
      • getFileName

        protected java.lang.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​(java.nio.charset.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​(java.lang.String algorithm)