org.apache.derby.iapi.sql.dictionary
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
public abstract class SubConstraintDescriptor extends UniqueTupleDescriptor
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description TableDescriptorgetTableDescriptor()Returns the cached TableDescriptor, if supplied, that the constraint is on.UUIDgetUUID()Gets the UUID of the constraint.abstract booleanhasBackingIndex()Does this constraint have a backing index?voidsetConstraintId(UUID constraintId)Sets the UUID of the constraint.voidsetTableDescriptor(TableDescriptor td)Caches the TableDescriptor of the table that the constraint is on.java.lang.StringtoString()Convert the SubConstraintDescriptor to a String.-
Methods inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor
getDescriptorName, getDescriptorType, isPersistent
-
-
-
-
Method Detail
-
setConstraintId
public void setConstraintId(UUID constraintId)
Sets the UUID of the constraint.- Parameters:
constraintId- The constraint Id.
-
getUUID
public UUID getUUID()
Gets the UUID of the constraint.- Specified by:
getUUIDin 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
public void setTableDescriptor(TableDescriptor td)
Caches the TableDescriptor of the table that the constraint is on.- Parameters:
td- The TableDescriptor.
-
getTableDescriptor
public TableDescriptor getTableDescriptor()
Returns the cached TableDescriptor, if supplied, that the constraint is on.- Returns:
- The cached TableDescriptor, if supplied.
-
toString
public java.lang.String toString()
Convert the SubConstraintDescriptor to a String.- Overrides:
toStringin classjava.lang.Object- Returns:
- A String representation of this SubConstraintDescriptor
-
-
DataMelt 3.0 © DataMelt by jWork.ORG