Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.sql.dictionary
Class ConstraintDescriptorList  view ConstraintDescriptorList download ConstraintDescriptorList.java

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byorg.apache.derby.iapi.sql.dictionary.ConstraintDescriptorList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.lang.Iterable, java.util.List, java.util.RandomAccess, java.io.Serializable

public class ConstraintDescriptorList
extends java.util.ArrayList


Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
private  boolean scanned
           
 
Fields inherited from class java.util.ArrayList
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ConstraintDescriptorList()
           
 
Method Summary
 ConstraintDescriptor dropConstraintDescriptorById(org.apache.derby.catalog.UUID uuid)
          Drop the constraint with the given UUID.
 ConstraintDescriptor elementAt(int n)
          Return the nth (0-based) element in the list.
 ConstraintDescriptor getConstraintDescriptor(org.apache.derby.catalog.UUID indexUUID)
          Get the ConstraintDescriptor with the matching UUID String for the backing index.
 ConstraintDescriptor getConstraintDescriptorById(org.apache.derby.catalog.UUID uuid)
          Get the ConstraintDescriptor with the matching constraint id.
 ConstraintDescriptor getConstraintDescriptorByName(SchemaDescriptor sd, java.lang.String name)
          Get the ConstraintDescriptor with the matching constraint name.
 ConstraintDescriptorList getConstraintDescriptorList(boolean enabled)
          Return a list of constraints where enabled is as passed in.
 ReferencedKeyConstraintDescriptor getPrimaryKey()
          Get the ConstraintDescriptor with the matching constraint name.
 boolean getScanned()
          Return whether or not the underlying system table has been scanned.
 ConstraintDescriptorList getSubList(int type)
          Return a ConstraintDescriptorList containing the ConstraintDescriptors of the specified type that are in this list.
 void setScanned(boolean scanned)
          Mark whether or not the underlying system table has been scanned.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Field Detail

scanned

private boolean scanned
Constructor Detail

ConstraintDescriptorList

public ConstraintDescriptorList()
Method Detail

setScanned

public void setScanned(boolean scanned)
Mark whether or not the underlying system table has been scanned. (If a table does not have any constraints then the size of its CDL will always be 0. We used these get/set methods to determine when we need to scan the table.


getScanned

public boolean getScanned()
Return whether or not the underlying system table has been scanned.


getConstraintDescriptor

public ConstraintDescriptor getConstraintDescriptor(org.apache.derby.catalog.UUID indexUUID)
Get the ConstraintDescriptor with the matching UUID String for the backing index.


getConstraintDescriptorById

public ConstraintDescriptor getConstraintDescriptorById(org.apache.derby.catalog.UUID uuid)
Get the ConstraintDescriptor with the matching constraint id.


dropConstraintDescriptorById

public ConstraintDescriptor dropConstraintDescriptorById(org.apache.derby.catalog.UUID uuid)
Drop the constraint with the given UUID.


getConstraintDescriptorByName

public ConstraintDescriptor getConstraintDescriptorByName(SchemaDescriptor sd,
                                                          java.lang.String name)
Get the ConstraintDescriptor with the matching constraint name.


getPrimaryKey

public ReferencedKeyConstraintDescriptor getPrimaryKey()
Get the ConstraintDescriptor with the matching constraint name.


getConstraintDescriptorList

public ConstraintDescriptorList getConstraintDescriptorList(boolean enabled)
Return a list of constraints where enabled is as passed in.


elementAt

public ConstraintDescriptor elementAt(int n)
Return the nth (0-based) element in the list.


getSubList

public ConstraintDescriptorList getSubList(int type)
Return a ConstraintDescriptorList containing the ConstraintDescriptors of the specified type that are in this list.