| java.lang.Object org.apache.derby.iapi.sql.dictionary.TupleDescriptor org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor org.apache.derby.iapi.sql.dictionary.KeyConstraintDescriptor
All known Subclasses: org.apache.derby.iapi.sql.dictionary.ReferencedKeyConstraintDescriptor, org.apache.derby.iapi.sql.dictionary.ForeignKeyConstraintDescriptor,
KeyConstraintDescriptor | abstract public class KeyConstraintDescriptor extends ConstraintDescriptor (Code) | | This interface is used to get information from a KeyConstraintDescriptor.
A KeyConstraintDescriptor can represent a primary/unique/foreign key
constraint.
version: 0.1 author: Jerry Brenner |
indexId | UUID indexId(Code) | | interface to this class:
- public UUID getIndexId();
- public ConglomerateDescriptor getIndexConglomerateDescriptor(DataDictionary dd)
throws StandardException;
- public String getIndexUUIDString();
- public int[] getKeyColumns();
|
KeyConstraintDescriptor | KeyConstraintDescriptor(DataDictionary dataDictionary, TableDescriptor table, String constraintName, boolean deferrable, boolean initiallyDeferred, int[] referencedColumns, UUID constraintId, UUID indexId, SchemaDescriptor schemaDesc, boolean isEnabled)(Code) | | Constructor for a KeyConstraintDescriptor
Parameters: dataDictionary - The data dictionary that this descriptor lives in Parameters: table - The descriptor of the table the constraint is on Parameters: constraintName - The name of the constraint. Parameters: deferrable - If the constraint can be deferred. Parameters: initiallyDeferred - If the constraint starts life deferred. Parameters: referencedColumns - columns that the constraint references Parameters: constraintId - UUID of constraint Parameters: indexId - The UUID for the backing index Parameters: schemaDesc - The SchemaDescriptor for the constraint Parameters: isEnabled - is this constraint enabled |
getConglomerateId | public UUID getConglomerateId()(Code) | | Get the UUID of the backing index, if one exists.
The UUID of the backing index, if one exists, else null. |
getIndexId | public UUID getIndexId()(Code) | | Gets the UUID of the backing index for the constraint.
The UUID of the backing index for the constraint. |
getIndexUUIDString | public String getIndexUUIDString()(Code) | | Gets the UUID String of the backing index for the constraint.
The UUID String of the backing index for the constraint. |
hasBackingIndex | public boolean hasBackingIndex()(Code) | | Does this constraint have a backing index?
boolean Whether or not there is a backing index for this constraint. |
toString | public String toString()(Code) | | Convert the SubConstraintDescriptor to a String.
A String representation of this SubConstraintDescriptor |
|
|