com.akiban.sql.parser
Class TestConstraintNode

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.ValueNode
          extended by com.akiban.sql.parser.UnaryOperatorNode
              extended by com.akiban.sql.parser.UnaryLogicalOperatorNode
                  extended by com.akiban.sql.parser.TestConstraintNode
All Implemented Interfaces:
Visitable

public class TestConstraintNode
extends UnaryLogicalOperatorNode

A TestConstraintNode is used to determine when a constraint has been violated.


Field Summary
 
Fields inherited from class com.akiban.sql.parser.UnaryOperatorNode
methodName, operator, receiverInterfaceType, resultInterfaceType
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
TestConstraintNode()
           
 
Method Summary
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 void init(Object booleanValue, Object sqlState, Object tableName, Object constraintName)
          Initializer for a TestConstraintNode
 
Methods inherited from class com.akiban.sql.parser.UnaryLogicalOperatorNode
init
 
Methods inherited from class com.akiban.sql.parser.UnaryOperatorNode
getMethodName, getOperand, getOperator, init, init, isEquivalent, printSubNodes, setOperand, toString
 
Methods inherited from class com.akiban.sql.parser.ValueNode
getColumnName, getSchemaName, getSourceResultColumn, getTableName, getType, getTypeId, init, isBinaryEqualsOperatorNode, isBooleanFalse, isBooleanTrue, isConstantExpression, isInListProbeNode, isParameterNode, isRelationalOperator, isSameNodeType, setNullability, setType
 
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, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, 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

TestConstraintNode

public TestConstraintNode()
Method Detail

init

public void init(Object booleanValue,
                 Object sqlState,
                 Object tableName,
                 Object constraintName)
          throws StandardException
Initializer for a TestConstraintNode

Overrides:
init in class QueryTreeNode
Parameters:
booleanValue - The operand of the constraint test
sqlState - The SQLState of the exception to throw if the constraint has failed
tableName - The name of the table that the constraint is on
constraintName - The name of the constraint being checked
Throws:
StandardException - Thrown on error

copyFrom

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

Overrides:
copyFrom in class UnaryOperatorNode
Throws:
StandardException


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