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
-
public class SubCheckConstraintDescriptor extends SubConstraintDescriptor
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
Fields Modifier and Type Field Description private java.lang.StringconstraintTextprivate ReferencedColumnsreferencedColumnspublic 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
Constructors Constructor Description SubCheckConstraintDescriptor(UUID constraintId, java.lang.String constraintText, ReferencedColumns referencedColumns)Constructor for a SubCheckConstraintDescriptor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetConstraintText()Get the text of the check constraint definition.ReferencedColumnsgetReferencedColumnsDescriptor()Get the ReferencedColumns.booleanhasBackingIndex()Does this constraint have a backing index?java.lang.StringtoString()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 Detail
-
referencedColumns
private ReferencedColumns referencedColumns
public interface to this class:- public String getConstraintText();
- public ReferencedColumns getReferencedColumnsDescriptor();
-
constraintText
private java.lang.String constraintText
-
-
Constructor Detail
-
SubCheckConstraintDescriptor
public SubCheckConstraintDescriptor(UUID constraintId, java.lang.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 Detail
-
getConstraintText
public java.lang.String getConstraintText()
Get the text of the check constraint definition.- Returns:
- The text of the check constraint definition.
-
getReferencedColumnsDescriptor
public ReferencedColumns getReferencedColumnsDescriptor()
Get the ReferencedColumns.- Returns:
- The ReferencedColumns.
-
hasBackingIndex
public boolean hasBackingIndex()
Does this constraint have a backing index?- Specified by:
hasBackingIndexin classSubConstraintDescriptor- Returns:
- boolean Whether or not there is a backing index for this constraint.
-
toString
public java.lang.String toString()
Convert the SubCheckConstraintDescriptor to a String.- Overrides:
toStringin classSubConstraintDescriptor- Returns:
- A String representation of this SubCheckConstraintDescriptor
-
-