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

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

public final class FKConstraintDefinitionNode
extends ConstraintDefinitionNode

A FKConstraintDefintionNode represents table constraint definitions.

Author:
jamie

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_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, beginOffset, endOffset
 
Constructor Summary
FKConstraintDefinitionNode()
           
 
Method Summary
protected  void bind(DDLStatementNode ddlNode, DataDictionary dd)
          Bind this constraint definition.
 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, bind, convertDefaultNode, debugFlush, debugPrint, executeSchemaName, executeStatementName, formatNodeString, foundString, generate, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getRowEstimate, getSchemaDescriptor, getSchemaDescriptor, getSPSName, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, isAtomic, isInstanceOf, isSessionSchema, isSessionSchema, makeConstantAction, makeResultDescription, makeTableName, needsSavepoint, nodeHeader, optimize, parseQueryText, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, 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:
ddlNode - the create or alter table node
dd - the dd
Throws:
StandardException - on error

getReferencedConstraintInfo

public ConstraintInfo getReferencedConstraintInfo()

getRefTableName

public TableName getRefTableName()

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.