Top Description Fields Constructors Methods
org.apache.derby.impl.sql.compile

public final Class FKConstraintDefinitionNode

extends ConstraintDefinitionNode
Class Inheritance
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.sql.StatementType, org.apache.derby.iapi.sql.compile.Visitor, org.apache.derby.iapi.sql.conn.Authorizer, org.apache.derby.iapi.sql.dictionary.ColumnDescriptor, .DataDictionary, .SchemaDescriptor, .TableDescriptor, org.apache.derby.impl.sql.execute.ConstraintInfo

A FKConstraintDefintionNode represents table constraint definitions.

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
pack-priv ResultColumnList
pack-priv TableName
pack-priv SchemaDescriptor
Inherited from org.apache.derby.impl.sql.compile.ConstraintDefinitionNode:
aplbackingIndexNamebackingIndexUUIDcheckConditioncolumnListconstraintTextconstraintTypeDEFERRABLE_DEFAULTENFORCED_DEFAULTINITIALLY_DEFERRED_DEFAULTpropertiesuuidFactory

Constructor Summary

AccessConstructor and Description
pack-priv
FKConstraintDefinitionNode(TableName constraintName, TableName refTableName, ResultColumnList fkRcl, ResultColumnList refRcl, int[] refActions, ContextManager cm)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
acceptChildren(Visitor
the visitor
v
)

Overrides org.apache.derby.impl.sql.compile.ConstraintDefinitionNode.acceptChildren.

Accept a visitor on all child nodes.

pack-priv void
bind(DDLStatementNode
the create or alter table node
ddlNode
,
DataDictionary
DataDictionary
dd
)

Overrides org.apache.derby.impl.sql.compile.ConstraintDefinitionNode.bind.

Bind this constraint definition.

pack-priv int
pack-priv ConstraintInfo
public TableName
Inherited from org.apache.derby.impl.sql.compile.ConstraintDefinitionNode:
getAuxiliaryProviderListgetBackingIndexNamegetBackingIndexUUIDgetCharacteristicsgetCheckConditiongetColumnListgetConstraintMonikergetConstraintTextgetConstraintTypegetDropBehaviorgetDropSchemaNamegetPropertiesgetReferenceCountgetVerifyTypehasCheckConstrainthasConstrainthasForeignKeyConstrainthasPrimaryKeyConstrainthasUniqueKeyConstraintisEnabledisReferencedqualifyNamesrequiresBackingIndexrequiresUniqueIndexsetAuxiliaryProviderListsetCharacteristicssetCheckConditionsetColumnListsetPropertiestoString

Field Detail

refActionDeleteRuleback to summary
pack-priv int refActionDeleteRule
refActionUpdateRuleback to summary
pack-priv int refActionUpdateRule
refRclback to summary
pack-priv ResultColumnList refRcl
refTableNameback to summary
pack-priv TableName refTableName
refTableSdback to summary
pack-priv SchemaDescriptor refTableSd

Constructor Detail

FKConstraintDefinitionNodeback to summary
pack-priv FKConstraintDefinitionNode(TableName constraintName, TableName refTableName, ResultColumnList fkRcl, ResultColumnList refRcl, int[] refActions, ContextManager cm)

Method Detail

acceptChildrenback to summary
pack-priv void acceptChildren(Visitor v) throws StandardException

Overrides org.apache.derby.impl.sql.compile.ConstraintDefinitionNode.acceptChildren.

Doc from org.apache.derby.impl.sql.compile.QueryTreeNode.acceptChildren.

Accept a visitor on all child nodes. All sub-classes that add fields that should be visited, should override this method and call accept(v) on all visitable fields, as well as super.acceptChildren(v) to make sure all visitable fields defined by the super-class are accepted too.

Parameters
v:Visitor

the visitor

Annotations
@Override
Exceptions
StandardException:
on errors raised by the visitor
bindback to summary
pack-priv void bind(DDLStatementNode ddlNode, DataDictionary dd) throws StandardException

Overrides org.apache.derby.impl.sql.compile.ConstraintDefinitionNode.bind.

Bind this constraint definition. Figure out some information about the table we are binding against.

Parameters
ddlNode:DDLStatementNode

Doc from org.apache.derby.impl.sql.compile.ConstraintDefinitionNode.bind.

the create or alter table node

dd:DataDictionary

DataDictionary

Annotations
@Override
Exceptions
StandardException:
on error
getPrivTypeback to summary
pack-priv int getPrivType()
getReferencedConstraintInfoback to summary
pack-priv ConstraintInfo getReferencedConstraintInfo()
getRefTableNameback to summary
public TableName getRefTableName()