| java.lang.Object org.apache.derby.iapi.sql.dictionary.TupleDescriptor org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor org.apache.derby.iapi.sql.dictionary.CheckConstraintDescriptor
CheckConstraintDescriptor | public class CheckConstraintDescriptor extends ConstraintDescriptor (Code) | | This class represents a check constraint descriptor.
author: jamie |
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. |
getConstraintText | public String getConstraintText()(Code) | | Get the text of the constraint. (Only non-null/meaningful for check
constraints.)
The constraint text. |
getConstraintType | public int getConstraintType()(Code) | | Gets an identifier telling what type of descriptor it is
(UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK).
An identifier telling what type of descriptor it is(UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK). |
getReferencedColumns | public int[] getReferencedColumns()(Code) | | Get the referenced columns as an int[] of column ids.
The array of referenced column ids. |
getReferencedColumnsDescriptor | public ReferencedColumns getReferencedColumnsDescriptor()(Code) | | Get the ReferencedColumns.
The ReferencedColumns. |
hasBackingIndex | public boolean hasBackingIndex()(Code) | | Does this constraint have a backing index?
boolean Whether or not there is a backing index for this constraint. |
needsToFire | public boolean needsToFire(int stmtType, int[] modifiedCols)(Code) | | Does this constraint need to fire on this type of
DML? For a check constraint, all inserts, and
appropriate updates
Parameters: stmtType - the type of DML (StatementType.INSERT|StatementType.UPDATE|StatementType.DELETE) Parameters: modifiedCols - the columns modified, or null for all true/false |
setReferencedColumnsDescriptor | public void setReferencedColumnsDescriptor(ReferencedColumns rcd)(Code) | | Set the ReferencedColumns; used in drop column
Parameters: rcd - The new ReferencedColumns. |
toString | public String toString()(Code) | | Convert the CheckConstraintDescriptor to a String.
A String representation of this CheckConstraintDescriptor |
|
|