Class SubCheckConstraintDescriptor
java.lang.Object
org.apache.derby.iapi.sql.dictionary.TupleDescriptor
org.apache.derby.iapi.sql.dictionary.UniqueTupleDescriptor
org.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor
org.apache.derby.iapi.sql.dictionary.SubCheckConstraintDescriptor
This interface is used to get information from a SubCheckConstraintDescriptor.
A SubCheckConstraintDescriptor is used within the DataDictionary to
get auxiliary constraint information from the system table
that is auxiliary to sysconstraints.
- Version:
- 0.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private ReferencedColumns
public interface to this class: public String getConstraintText(); public ReferencedColumns getReferencedColumnsDescriptor();Fields inherited from class org.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor
constraintId, td
-
Constructor Summary
ConstructorsConstructorDescriptionSubCheckConstraintDescriptor
(UUID constraintId, String constraintText, ReferencedColumns referencedColumns) Constructor for a SubCheckConstraintDescriptor -
Method Summary
Modifier and TypeMethodDescriptionGet the text of the check constraint definition.Get the ReferencedColumns.boolean
Does this constraint have a backing index?toString()
Convert the SubCheckConstraintDescriptor to a String.Methods inherited from class org.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor
getTableDescriptor, getUUID, setConstraintId, setTableDescriptor
Methods inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor
getColumnDependableFinder, getDataDictionary, getDependableFinder, getDescriptorName, getDescriptorType, isPersistent, setDataDictionary
-
Field Details
-
referencedColumns
public interface to this class:- public String getConstraintText();
- public ReferencedColumns getReferencedColumnsDescriptor();
-
constraintText
-
-
Constructor Details
-
SubCheckConstraintDescriptor
public SubCheckConstraintDescriptor(UUID constraintId, String constraintText, ReferencedColumns referencedColumns) Constructor for a SubCheckConstraintDescriptor- Parameters:
constraintId
- The UUID of the constraint.constraintText
- The text of the constraint definition.referencedColumns
- The columns referenced by the check constraint
-
-
Method Details
-
getConstraintText
Get the text of the check constraint definition.- Returns:
- The text of the check constraint definition.
-
getReferencedColumnsDescriptor
Get the ReferencedColumns.- Returns:
- The ReferencedColumns.
-
hasBackingIndex
public boolean hasBackingIndex()Does this constraint have a backing index?- Specified by:
hasBackingIndex
in classSubConstraintDescriptor
- Returns:
- boolean Whether or not there is a backing index for this constraint.
-
toString
Convert the SubCheckConstraintDescriptor to a String.- Overrides:
toString
in classSubConstraintDescriptor
- Returns:
- A String representation of this SubCheckConstraintDescriptor
-