Class SubConstraintDescriptor
java.lang.Object
org.apache.derby.iapi.sql.dictionary.TupleDescriptor
org.apache.derby.iapi.sql.dictionary.UniqueTupleDescriptor
org.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor
- Direct Known Subclasses:
SubCheckConstraintDescriptor
,SubKeyConstraintDescriptor
This interface is used to get information from a SubConstraintDescriptor.
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
(package private) TableDescriptor
public interface for this class: public void setConstraintId(UUID constraintId); public boolean hasBackingIndex(); public void setTableDescriptor(TableDescriptor td); public TableDescriptor getTableDescriptor(); -
Constructor Summary
ConstructorsConstructorDescriptionSubConstraintDescriptor
(UUID constraintId) Constructor for a SubConstraintDescriptorImpl -
Method Summary
Modifier and TypeMethodDescriptionReturns the cached TableDescriptor, if supplied, that the constraint is on.getUUID()
Gets the UUID of the constraint.abstract boolean
Does this constraint have a backing index?void
setConstraintId
(UUID constraintId) Sets the UUID of the constraint.void
Caches the TableDescriptor of the table that the constraint is on.toString()
Convert the SubConstraintDescriptor to a String.Methods inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor
getColumnDependableFinder, getDataDictionary, getDependableFinder, getDescriptorName, getDescriptorType, isPersistent, setDataDictionary
-
Field Details
-
td
public interface for this class:- public void setConstraintId(UUID constraintId);
- public boolean hasBackingIndex();
- public void setTableDescriptor(TableDescriptor td);
- public TableDescriptor getTableDescriptor();
-
constraintId
UUID constraintId
-
-
Constructor Details
-
SubConstraintDescriptor
SubConstraintDescriptor(UUID constraintId) Constructor for a SubConstraintDescriptorImpl- Parameters:
constraintId
- The UUID of the constraint.
-
-
Method Details
-
setConstraintId
Sets the UUID of the constraint.- Parameters:
constraintId
- The constraint Id.
-
getUUID
Gets the UUID of the constraint.- Specified by:
getUUID
in classUniqueTupleDescriptor
- Returns:
- The UUID of the constraint.
-
hasBackingIndex
public abstract boolean hasBackingIndex()Does this constraint have a backing index?- Returns:
- boolean Whether or not there is a backing index for this constraint.
-
setTableDescriptor
Caches the TableDescriptor of the table that the constraint is on.- Parameters:
td
- The TableDescriptor.
-
getTableDescriptor
Returns the cached TableDescriptor, if supplied, that the constraint is on.- Returns:
- The cached TableDescriptor, if supplied.
-
toString
Convert the SubConstraintDescriptor to a String.
-