Dependable, Dependent, Providerpublic class CheckConstraintDescriptor extends ConstraintDescriptor
| Modifier and Type | Field | Description |
|---|---|---|
private java.lang.String |
constraintText |
|
private ReferencedColumns |
referencedColumns |
ALL, constraintId, constraintName, DISABLED, ENABLED, SYSCONSTRAINTS_STATE_FIELD, tableACTIVATION, ALIAS, COLUMNS_IN_TABLE, COLUMNS_PERMISSION, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PERM, PREPARED_STATEMENT, ROLE_GRANT, ROUTINE_PERMISSION, SCHEMA, SEQUENCE, STORED_PREPARED_STATEMENT, TABLE, TABLE_PERMISSION, TRIGGER, VIEW| Constructor | Description |
|---|---|
CheckConstraintDescriptor(DataDictionary dataDictionary,
TableDescriptor table,
java.lang.String constraintName,
boolean deferrable,
boolean initiallyDeferred,
UUID constraintId,
java.lang.String constraintText,
ReferencedColumns referencedColumns,
SchemaDescriptor schemaDesc,
boolean isEnabled) |
| Modifier and Type | Method | Description |
|---|---|---|
UUID |
getConglomerateId() |
Get the UUID of the backing index, if one exists.
|
java.lang.String |
getConstraintText() |
Get the text of the constraint.
|
int |
getConstraintType() |
Gets an identifier telling what type of descriptor it is
(UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK).
|
int[] |
getReferencedColumns() |
Get the referenced columns as an int[] of column ids.
|
ReferencedColumns |
getReferencedColumnsDescriptor() |
Get the ReferencedColumns.
|
boolean |
hasBackingIndex() |
Does this constraint have a backing index?
|
boolean |
needsToFire(int stmtType,
int[] modifiedCols) |
Does this constraint need to fire on this type of
DML?
|
void |
setReferencedColumnsDescriptor(ReferencedColumns rcd) |
Set the ReferencedColumns; used in drop column
|
java.lang.String |
toString() |
Convert the CheckConstraintDescriptor to a String.
|
areColumnsComparable, columnIntersects, deferrable, doColumnsIntersect, drop, enforced, getClassType, getColumnDescriptors, getConstraintName, getDependableFinder, getDescriptorName, getDescriptorType, getKeyColumns, getObjectID, getObjectName, getReferenceCount, getSchemaDescriptor, getTableDescriptor, getTableId, getUUID, initiallyDeferred, isReferenced, isValid, makeInvalid, prepareToInvalidate, setDeferrable, setEnforced, setInitiallyDeferredisPersistentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetColumnDependableFinder, getDataDictionary, getDependableFinder, isPersistent, setDataDictionaryprivate ReferencedColumns referencedColumns
private java.lang.String constraintText
CheckConstraintDescriptor(DataDictionary dataDictionary, TableDescriptor table, java.lang.String constraintName, boolean deferrable, boolean initiallyDeferred, UUID constraintId, java.lang.String constraintText, ReferencedColumns referencedColumns, SchemaDescriptor schemaDesc, boolean isEnabled)
public boolean hasBackingIndex()
hasBackingIndex in class ConstraintDescriptorpublic int getConstraintType()
getConstraintType in class ConstraintDescriptorpublic java.lang.String getConstraintText()
getConstraintText in class ConstraintDescriptorpublic UUID getConglomerateId()
getConglomerateId in class ConstraintDescriptorpublic ReferencedColumns getReferencedColumnsDescriptor()
public void setReferencedColumnsDescriptor(ReferencedColumns rcd)
rcd - The new ReferencedColumns.public int[] getReferencedColumns()
getReferencedColumns in class ConstraintDescriptorpublic boolean needsToFire(int stmtType,
int[] modifiedCols)
needsToFire in class ConstraintDescriptorstmtType - the type of DML
(StatementType.INSERT|StatementType.UPDATE|StatementType.DELETE)modifiedCols - the columns modified, or null for allpublic java.lang.String toString()
toString in class ConstraintDescriptorApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.