Class LockTableNode

  • All Implemented Interfaces:
    Visitable

    class LockTableNode
    extends MiscellaneousStatementNode
    A LockTableNode is the root of a QueryTree that represents a LOCK TABLE command: LOCK TABLE IN SHARE/EXCLUSIVE MODE
    • Field Detail

      • exclusiveMode

        private boolean exclusiveMode
      • conglomerateNumber

        private long conglomerateNumber
    • Constructor Detail

      • LockTableNode

        LockTableNode​(TableName tableName,
                      boolean exclusiveMode,
                      ContextManager cm)
        Parameters:
        tableName - The table to lock
        exclusiveMode - Whether or not to get an exclusive lock.
        cm - Context manager
    • Method Detail

      • toString

        public java.lang.String toString()
        Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.
        Overrides:
        toString in class StatementNode
        Returns:
        This object as a String
      • acceptChildren

        void acceptChildren​(Visitor v)
                     throws StandardException
        Description copied from class: QueryTreeNode
        Accept a visitor on all child nodes. All sub-classes that add fields that should be visited, should override this method and call accept(v) on all visitable fields, as well as super.acceptChildren(v) to make sure all visitable fields defined by the super-class are accepted too.
        Overrides:
        acceptChildren in class QueryTreeNode
        Parameters:
        v - the visitor
        Throws:
        StandardException - on errors raised by the visitor