|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.iapi.sql.dictionary.TupleDescriptor
org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor
org.apache.derby.iapi.sql.dictionary.KeyConstraintDescriptor
This interface is used to get information from a KeyConstraintDescriptor. A KeyConstraintDescriptor can represent a primary/unique/foreign key constraint.
Field Summary | |
private ConglomerateDescriptor |
indexConglom
|
(package private) UUID |
indexId
interface to this class: public UUID getIndexId(); public ConglomerateDescriptor getIndexConglomerateDescriptor(DataDictionary dd) throws StandardException; public String getIndexUUIDString(); public int[] getKeyColumns(); |
Fields inherited from class org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor |
ALL, colDL, constraintId, constraintName, deferrable, DISABLED, ENABLED, initiallyDeferred, isEnabled, referencedColumns, schemaDesc, SYSCONSTRAINTS_STATE_FIELD, table |
Fields inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor |
COLUMN_LIST, CONGLOMERATE_LIST, CONSTRAINT_LIST, TRIGGER_LIST |
Fields inherited from interface org.apache.derby.catalog.Dependable |
ALIAS, COLUMNS_IN_TABLE, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PREPARED_STATEMENT, SCHEMA, STORED_PREPARED_STATEMENT, TABLE, TRIGGER, VIEW |
Constructor Summary | |
(package private) |
KeyConstraintDescriptor(DataDictionary dataDictionary,
TableDescriptor table,
java.lang.String constraintName,
boolean deferrable,
boolean initiallyDeferred,
int[] referencedColumns,
UUID constraintId,
UUID indexId,
SchemaDescriptor schemaDesc,
boolean isEnabled)
Constructor for a KeyConstraintDescriptor |
Method Summary | |
UUID |
getConglomerateId()
Get the UUID of the backing index, if one exists. |
ConglomerateDescriptor |
getIndexConglomerateDescriptor(DataDictionary dd)
Gets the index conglomerate descriptor |
UUID |
getIndexId()
Gets the UUID of the backing index for the constraint. |
java.lang.String |
getIndexUUIDString()
Gets the UUID String of the backing index for the constraint. |
boolean |
hasBackingIndex()
Does this constraint have a backing index? |
java.lang.String |
toString()
Convert the SubConstraintDescriptor to a String. |
Methods inherited from class org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor |
areColumnsComparable, columnIntersects, deferrable, doColumnsIntersect, getClassType, getColumnDescriptors, getConstraintName, getConstraintText, getConstraintType, getDependableFinder, getDescriptorName, getDescriptorType, getKeyColumns, getObjectID, getObjectName, getReferenceCount, getReferencedColumns, getSchemaDescriptor, getTableDescriptor, getTableId, getUUID, initiallyDeferred, isEnabled, isReferenced, isValid, makeInvalid, makeValid, needsToFire, prepareToInvalidate, setConstraintId, setDisabled, setEnabled |
Methods inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor |
getColumnDependableFinder, getDataDictionary, getDependableFinder, isPersistent, setDataDictionary |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.derby.catalog.Dependable |
isPersistent |
Field Detail |
UUID indexId
private ConglomerateDescriptor indexConglom
Constructor Detail |
KeyConstraintDescriptor(DataDictionary dataDictionary, TableDescriptor table, java.lang.String constraintName, boolean deferrable, boolean initiallyDeferred, int[] referencedColumns, UUID constraintId, UUID indexId, SchemaDescriptor schemaDesc, boolean isEnabled)
dataDictionary
- The data dictionary that this descriptor lives intable
- The descriptor of the table the constraint is onconstraintName
- The name of the constraint.deferrable
- If the constraint can be deferred.initiallyDeferred
- If the constraint starts life deferred.referencedColumns
- columns that the constraint referencesconstraintId
- UUID of constraintindexId
- The UUID for the backing indexschemaDesc
- The SchemaDescriptor for the constraintisEnabled
- is this constraint enabledMethod Detail |
public UUID getIndexId()
public ConglomerateDescriptor getIndexConglomerateDescriptor(DataDictionary dd) throws StandardException
StandardException
- on errorpublic java.lang.String getIndexUUIDString()
public boolean hasBackingIndex()
hasBackingIndex
in class ConstraintDescriptor
public UUID getConglomerateId()
getConglomerateId
in class ConstraintDescriptor
public java.lang.String toString()
toString
in class ConstraintDescriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |