com.akiban.sql.parser
Class LockTableNode

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.StatementNode
          extended by com.akiban.sql.parser.MiscellaneousStatementNode
              extended by com.akiban.sql.parser.LockTableNode
All Implemented Interfaces:
Visitable

public 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 Summary
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
LockTableNode()
           
 
Method Summary
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 void init(Object tableName, Object exclusiveMode)
          Initializer for LockTableNode
 String statementToString()
           
 String toString()
          Convert this object to a String.
 
Methods inherited from class com.akiban.sql.parser.QueryTreeNode
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, printSubNodes, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LockTableNode

public LockTableNode()
Method Detail

init

public void init(Object tableName,
                 Object exclusiveMode)
Initializer for LockTableNode

Overrides:
init in class QueryTreeNode
Parameters:
tableName - The table to lock
exclusiveMode - boolean, whether or not to get an exclusive lock.

copyFrom

public void copyFrom(QueryTreeNode node)
              throws StandardException
Fill this node with a deep copy of the given node.

Overrides:
copyFrom in class QueryTreeNode
Throws:
StandardException

toString

public 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

statementToString

public String statementToString()
Specified by:
statementToString in class StatementNode


Copyright © 2013 Akiban Technologies, Inc. All rights reserved.