org.apache.derby.iapi.sql.dictionary
Class SubCheckConstraintDescriptor

java.lang.Object
  extended byorg.apache.derby.iapi.sql.dictionary.TupleDescriptor
      extended byorg.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor
          extended byorg.apache.derby.iapi.sql.dictionary.SubCheckConstraintDescriptor
All Implemented Interfaces:
UniqueTupleDescriptor

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
Author:
Jerry Brenner

Field Summary
private  java.lang.String constraintText
           
private  ReferencedColumns 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
 
Fields inherited from class org.apache.derby.iapi.sql.dictionary.TupleDescriptor
COLUMN_LIST, CONGLOMERATE_LIST, CONSTRAINT_LIST, TRIGGER_LIST
 
Constructor Summary
SubCheckConstraintDescriptor(UUID constraintId, java.lang.String constraintText, ReferencedColumns referencedColumns)
          Constructor for a SubCheckConstraintDescriptor
 
Method Summary
 java.lang.String getConstraintText()
          Get the text of the check constraint definition.
 ReferencedColumns getReferencedColumnsDescriptor()
          Get the ReferencedColumns.
 boolean hasBackingIndex()
          Does this constraint have a backing index?
 java.lang.String 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

referencedColumns

private ReferencedColumns referencedColumns
public interface to this class:
  1. public String getConstraintText();
  2. 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:
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:
hasBackingIndex in class SubConstraintDescriptor
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:
toString in class SubConstraintDescriptor
Returns:
A String representation of this SubCheckConstraintDescriptor


Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.