Class FKConstraintDefinitionNode
- java.lang.Object
-
- org.apache.derby.impl.sql.compile.QueryTreeNode
-
- org.apache.derby.impl.sql.compile.TableElementNode
-
- org.apache.derby.impl.sql.compile.ConstraintDefinitionNode
-
- 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
Fields Modifier and Type Field Description (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, checkCondition, columnList, constraintText, constraintType, DEFERRABLE_DEFAULT, ENFORCED_DEFAULT, INITIALLY_DEFERRED_DEFAULT, 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_MODIFY_CONSTRAINT, AT_UNKNOWN, elementType, name
-
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
-
-
Constructor Summary
Constructors Constructor Description FKConstraintDefinitionNode(TableName constraintName, TableName refTableName, ResultColumnList fkRcl, ResultColumnList refRcl, int[] refActions, ContextManager cm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
acceptChildren(Visitor v)
Accept a visitor on all child nodes.(package private) void
bind(DDLStatementNode ddlNode, DataDictionary dd)
Bind this constraint definition.(package private) int
getPrivType()
(package private) ConstraintInfo
getReferencedConstraintInfo()
TableName
getRefTableName()
-
Methods inherited from class org.apache.derby.impl.sql.compile.ConstraintDefinitionNode
getAuxiliaryProviderList, getBackingIndexName, getBackingIndexUUID, getCharacteristics, getCheckCondition, getColumnList, getConstraintMoniker, getConstraintText, getConstraintType, getDropBehavior, getDropSchemaName, getProperties, getReferenceCount, getVerifyType, hasCheckConstraint, hasConstraint, hasForeignKeyConstraint, hasPrimaryKeyConstraint, hasUniqueKeyConstraint, isEnabled, isReferenced, qualifyNames, requiresBackingIndex, requiresUniqueIndex, setAuxiliaryProviderList, setCharacteristics, setCheckCondition, setColumnList, setProperties, toString
-
Methods inherited from class org.apache.derby.impl.sql.compile.TableElementNode
getElementType, getName
-
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode
accept, addTag, addUDTUsagePriv, addUDTUsagePriv, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, copyTagsFrom, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, generate, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContext, getContextManager, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getLongProperty, getNullNode, getOffsetOrderedNodes, getOptimizerFactory, getOptimizerTracer, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, getUDTDesc, isAtomic, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, optimizerTracingIsOn, orReliability, parseSearchCondition, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setEndOffset, setRefActionInfo, stackPrint, taggedWith, treePrint, treePrint, verifyClassExist
-
-
-
-
Field Detail
-
refTableName
TableName refTableName
-
refRcl
ResultColumnList refRcl
-
refTableSd
SchemaDescriptor refTableSd
-
refActionDeleteRule
int refActionDeleteRule
-
refActionUpdateRule
int refActionUpdateRule
-
-
Constructor Detail
-
FKConstraintDefinitionNode
FKConstraintDefinitionNode(TableName constraintName, TableName refTableName, ResultColumnList fkRcl, ResultColumnList refRcl, int[] refActions, ContextManager cm)
-
-
Method Detail
-
bind
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 classConstraintDefinitionNode
- Parameters:
dd
- DataDictionaryddlNode
- the create or alter table node- Throws:
StandardException
- on error
-
getReferencedConstraintInfo
ConstraintInfo getReferencedConstraintInfo()
-
getRefTableName
public TableName getRefTableName()
-
getPrivType
int getPrivType()
-
acceptChildren
void acceptChildren(Visitor v) throws StandardException
Description copied from class:QueryTreeNode
Accept a visitor on all child nodes. All sub-classes that add fields that should be visited, should override this method and callaccept(v)
on all visitable fields, as well assuper.acceptChildren(v)
to make sure all visitable fields defined by the super-class are accepted too.- Overrides:
acceptChildren
in classConstraintDefinitionNode
- Parameters:
v
- the visitor- Throws:
StandardException
- on errors raised by the visitor
-
-