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
A FKConstraintDefintionNode represents table constraint definitions.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) int
(package private) ResultColumnList
(package private) TableName
(package private) SchemaDescriptor
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
ConstructorsConstructorDescriptionFKConstraintDefinitionNode
(TableName constraintName, TableName refTableName, ResultColumnList fkRcl, ResultColumnList refRcl, int[] refActions, ContextManager cm) -
Method Summary
Modifier and TypeMethodDescription(package private) void
Accept a visitor on all child nodes.(package private) void
bind
(DDLStatementNode ddlNode, DataDictionary dd) Bind this constraint definition.(package private) int
(package private) ConstraintInfo
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 Details
-
refTableName
TableName refTableName -
refRcl
ResultColumnList refRcl -
refTableSd
SchemaDescriptor refTableSd -
refActionDeleteRule
int refActionDeleteRule -
refActionUpdateRule
int refActionUpdateRule
-
-
Constructor Details
-
FKConstraintDefinitionNode
FKConstraintDefinitionNode(TableName constraintName, TableName refTableName, ResultColumnList fkRcl, ResultColumnList refRcl, int[] refActions, ContextManager cm)
-
-
Method Details
-
bind
Bind this constraint definition. Figure out some information about the table we are binding against.- Overrides:
bind
in classConstraintDefinitionNode
- Parameters:
ddlNode
- the create or alter table nodedd
- DataDictionary- Throws:
StandardException
- on error
-
getReferencedConstraintInfo
ConstraintInfo getReferencedConstraintInfo() -
getRefTableName
-
getPrivType
int getPrivType() -
acceptChildren
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
-