com.akiban.sql.parser
Class TestConstraintNode
java.lang.Object
com.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.ValueNode
com.akiban.sql.parser.UnaryOperatorNode
com.akiban.sql.parser.UnaryLogicalOperatorNode
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.
| 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 |
TestConstraintNode
public TestConstraintNode()
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 testsqlState - The SQLState of the exception to throw if the
constraint has failedtableName - The name of the table that the constraint is onconstraintName - 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.