Top Description Fields Constructors Methods
org.apache.derby.iapi.sql.dictionary

public Class SubCheckConstraintDescriptor

extends SubConstraintDescriptor
Class Inheritance
Imports
org.apache.derby.catalog.ReferencedColumns, .UUID, org.apache.derby.shared.common.sanity.SanityManager

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

Modifier and TypeField and Description
private String
private ReferencedColumns
referencedColumns

public interface to this class:

  1. public String getConstraintText();
  2. public ReferencedColumns getReferencedColumnsDescriptor();
Inherited from org.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor:
constraintIdtd

Constructor Summary

AccessConstructor and Description
public
SubCheckConstraintDescriptor(UUID
The UUID of the constraint.
constraintId
,
String
The text of the constraint definition.
constraintText
,
ReferencedColumns
The columns referenced by the check constraint
referencedColumns
)

Constructor for a SubCheckConstraintDescriptor

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The text of the check constraint definition.
getConstraintText
()

Get the text of the check constraint definition.

public ReferencedColumns

Returns:

The ReferencedColumns.
getReferencedColumnsDescriptor
()

Get the ReferencedColumns.

public boolean

Returns:

boolean Whether or not there is a backing index for this constraint.
hasBackingIndex
()

Implements abstract org.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor.hasBackingIndex.

Does this constraint have a backing index?

public String

Returns:

A String representation of this SubCheckConstraintDescriptor
toString
()

Overrides org.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor.toString.

Convert the SubCheckConstraintDescriptor to a String.

Inherited from org.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor:
getTableDescriptorgetUUIDsetConstraintIdsetTableDescriptor

Field Detail

constraintTextback to summary
private String constraintText
referencedColumnsback to summary
private ReferencedColumns referencedColumns

public interface to this class:

  1. public String getConstraintText();
  2. public ReferencedColumns getReferencedColumnsDescriptor();

Constructor Detail

SubCheckConstraintDescriptorback to summary
public SubCheckConstraintDescriptor(UUID constraintId, String constraintText, ReferencedColumns referencedColumns)

Constructor for a SubCheckConstraintDescriptor

Parameters
constraintId:UUID

The UUID of the constraint.

constraintText:String

The text of the constraint definition.

referencedColumns:ReferencedColumns

The columns referenced by the check constraint

Method Detail

getConstraintTextback to summary
public String getConstraintText()

Get the text of the check constraint definition.

Returns:String

The text of the check constraint definition.

getReferencedColumnsDescriptorback to summary
public ReferencedColumns getReferencedColumnsDescriptor()

Get the ReferencedColumns.

Returns:ReferencedColumns

The ReferencedColumns.

hasBackingIndexback to summary
public boolean hasBackingIndex()

Implements abstract org.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor.hasBackingIndex.

Does this constraint have a backing index?

Returns:boolean

boolean Whether or not there is a backing index for this constraint.

toStringback to summary
public String toString()

Overrides org.apache.derby.iapi.sql.dictionary.SubConstraintDescriptor.toString.

Convert the SubCheckConstraintDescriptor to a String.

Returns:String

A String representation of this SubCheckConstraintDescriptor