org.apache.derby.impl.sql.compile
Class FKConstraintDefinitionNode

java.lang.Object
  extended by org.apache.derby.impl.sql.compile.QueryTreeNode
      extended by org.apache.derby.impl.sql.compile.TableElementNode
          extended by org.apache.derby.impl.sql.compile.ConstraintDefinitionNode
              extended by org.apache.derby.impl.sql.compile.FKConstraintDefinitionNode
All Implemented Interfaces:
Visitable

public final class FKConstraintDefinitionNode
extends ConstraintDefinitionNode

A FKConstraintDefintionNode represents table constraint definitions.


Field Summary
(package private)  int refActionDeleteRule
           
(package private)  int refActionUpdateRule
           
(package private)  ResultColumnList refRcl
           
(package private)  TableName refTableName
           
(package private)  SchemaDescriptor refTableSd
           
 
Fields inherited from class org.apache.derby.impl.sql.compile.ConstraintDefinitionNode
apl, backingIndexName, backingIndexUUID, checkColumnReferences, checkCondition, columnList, constraintText, constraintType, properties, uuidFactory
 
Fields inherited from class org.apache.derby.impl.sql.compile.TableElementNode
AT_ADD_CHECK_CONSTRAINT, AT_ADD_FOREIGN_KEY_CONSTRAINT, AT_ADD_PRIMARY_KEY_CONSTRAINT, AT_ADD_UNIQUE_CONSTRAINT, AT_DROP_COLUMN, AT_DROP_CONSTRAINT, AT_MODIFY_COLUMN, AT_UNKNOWN, elementType, name
 
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired
 
Constructor Summary
FKConstraintDefinitionNode()
           
 
Method Summary
protected  void bind(DDLStatementNode ddlNode, DataDictionary dd)
          Bind this constraint definition.
(package private)  int getPrivType()
           
 ConstraintInfo getReferencedConstraintInfo()
           
 TableName getRefTableName()
           
 void init(java.lang.Object constraintName, java.lang.Object refTableName, java.lang.Object fkRcl, java.lang.Object refRcl, java.lang.Object refActions)
          Initialize a query tree node.
 
Methods inherited from class org.apache.derby.impl.sql.compile.ConstraintDefinitionNode
getAuxiliaryProviderList, getBackingIndexName, getBackingIndexUUID, getCheckColumnReferences, getCheckCondition, getColumnList, getConstraintMoniker, getConstraintText, getConstraintType, getDropBehavior, getDropSchemaName, getProperties, getReferenceCount, getVerifyType, hasCheckConstraint, hasConstraint, hasForeignKeyConstraint, hasPrimaryKeyConstraint, hasUniqueKeyConstraint, init, init, init, isEnabled, isReferenced, requiresBackingIndex, requiresUniqueIndex, setAuxiliaryProviderList, setCheckColumnReferences, setCheckCondition, setColumnList, setProperties, toString
 
Methods inherited from class org.apache.derby.impl.sql.compile.TableElementNode
getElementType, getName, init, init
 
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
accept, acceptChildren, bindOffsetFetch, bindRowMultiSet, bindUserType, checkReliability, checkReliability, convertDefaultNode, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, foundString, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getRowEstimate, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, isAtomic, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, orReliability, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, stackPrint, treePrint, treePrint, verifyClassExist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

refTableName

TableName refTableName

refRcl

ResultColumnList refRcl

refTableSd

SchemaDescriptor refTableSd

refActionDeleteRule

int refActionDeleteRule

refActionUpdateRule

int refActionUpdateRule
Constructor Detail

FKConstraintDefinitionNode

public FKConstraintDefinitionNode()
Method Detail

init

public void init(java.lang.Object constraintName,
                 java.lang.Object refTableName,
                 java.lang.Object fkRcl,
                 java.lang.Object refRcl,
                 java.lang.Object refActions)
Description copied from class: QueryTreeNode
Initialize a query tree node.

Overrides:
init in class QueryTreeNode

bind

protected void bind(DDLStatementNode ddlNode,
                    DataDictionary dd)
             throws StandardException
Bind this constraint definition. Figure out some information about the table we are binding against.

Overrides:
bind in class ConstraintDefinitionNode
Parameters:
dd - DataDictionary
ddlNode - the create or alter table node
Throws:
StandardException - on error

getReferencedConstraintInfo

public ConstraintInfo getReferencedConstraintInfo()

getRefTableName

public TableName getRefTableName()

getPrivType

int getPrivType()

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.