Class DefineCommand

    • Field Detail

      • transactional

        protected boolean transactional
        The transactional behavior. The default is disabled, meaning the command commits an open transaction.
    • Constructor Detail

      • DefineCommand

        DefineCommand​(SessionLocal session)
        Create a new command for the given session.
        Parameters:
        session - the session
    • Method Detail

      • isReadOnly

        public boolean isReadOnly()
        Description copied from class: Prepared
        Check if this command is read only.
        Overrides:
        isReadOnly in class Prepared
        Returns:
        true if it is
      • 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
      • setTransactional

        public void setTransactional​(boolean transactional)
      • 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