Class SubKeyConstraintDescriptor
java.lang.Object
org.apache.derby.iapi.sql.dictionary.TupleDescriptor
org.apache.derby.iapi.sql.dictionary.UniqueTupleDescriptor
org.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor
org.apache.derby.iapi.sql.dictionary.SubKeyConstraintDescriptor
This interface is used to get information from a SubKeyConstraintDescriptor.
A SubKeyConstraintDescriptor is used within the DataDictionary to
get auxiliary constraint information from the system table
that is auxiliary to sysconstraints.
- Version:
- 0.1
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) UUID
Interface for SubKeyConstraintDescriptor is public UUID getIndexId(); public UUID getKeyConstraintId();(package private) UUID
(package private) int
(package private) int
Fields inherited from class org.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor
constraintId, td
-
Constructor Summary
ConstructorsConstructorDescriptionSubKeyConstraintDescriptor
(UUID constraintId, UUID indexId) Constructor for a SubConstraintDescriptorImplSubKeyConstraintDescriptor
(UUID constraintId, UUID indexId, UUID keyConstraintId) Constructor for a SubConstraintDescriptorSubKeyConstraintDescriptor
(UUID constraintId, UUID indexId, UUID keyConstraintId, int raDeleteRule, int raUpdateRule) Constructor for a SubConstraintDescriptor -
Method Summary
Modifier and TypeMethodDescriptionGets the UUID of the backing index.Gets the UUID of the referenced key constraintint
Gets a referential action rule on a DELETEint
Gets a referential action rule on a UPDATEboolean
Does this constraint have a backing index?toString()
Convert the SubKeyConstraintDescriptor to a String.Methods inherited from class org.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor
getTableDescriptor, getUUID, setConstraintId, setTableDescriptor
Methods inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor
getColumnDependableFinder, getDataDictionary, getDependableFinder, getDescriptorName, getDescriptorType, isPersistent, setDataDictionary
-
Field Details
-
Constructor Details
-
SubKeyConstraintDescriptor
Constructor for a SubConstraintDescriptorImpl- Parameters:
constraintId
- The UUID of the constraint.indexId
- The UUID of the backing index.
-
SubKeyConstraintDescriptor
Constructor for a SubConstraintDescriptor- Parameters:
constraintId
- The UUID of the constraint.indexId
- The UUID of the backing index.keyConstraintId
- The UUID of the referenced constraint (fks)
-
SubKeyConstraintDescriptor
public SubKeyConstraintDescriptor(UUID constraintId, UUID indexId, UUID keyConstraintId, int raDeleteRule, int raUpdateRule) Constructor for a SubConstraintDescriptor- Parameters:
constraintId
- The UUID of the constraint.indexId
- The UUID of the backing index.keyConstraintId
- The UUID of the referenced constraint (fks)raDeleteRule
- The referential action for deleteraUpdateRule
- The referential action for update
-
-
Method Details
-
getIndexId
Gets the UUID of the backing index.- Returns:
- The UUID of the backing index.
-
getKeyConstraintId
Gets the UUID of the referenced key constraint- Returns:
- The UUID of the referenced key constraint
-
hasBackingIndex
public boolean hasBackingIndex()Does this constraint have a backing index?- Specified by:
hasBackingIndex
in classSubConstraintDescriptor
- Returns:
- boolean Whether or not there is a backing index for this constraint.
-
getRaDeleteRule
public int getRaDeleteRule()Gets a referential action rule on a DELETE- Returns:
- referential rule defined by the user during foreign key creattion for a delete (like CASCDE , RESTRICT ..etc)
-
getRaUpdateRule
public int getRaUpdateRule()Gets a referential action rule on a UPDATE- Returns:
- referential rule defined by the user during foreign key creattion for an UPDATE (like CASCDE , RESTRICT ..etc)
-
toString
Convert the SubKeyConstraintDescriptor to a String.- Overrides:
toString
in classSubConstraintDescriptor
- Returns:
- A String representation of this SubConstraintDescriptor
-