java.io.Serializable
, java.lang.Cloneable
, java.lang.Iterable<ConstraintDescriptor>
, java.util.Collection<ConstraintDescriptor>
, java.util.List<ConstraintDescriptor>
, java.util.RandomAccess
public class ConstraintDescriptorList extends java.util.ArrayList<ConstraintDescriptor>
Modifier and Type | Field | Description |
---|---|---|
private boolean |
scanned |
Constructor | Description |
---|---|
ConstraintDescriptorList() |
Modifier and Type | Method | Description |
---|---|---|
ConstraintDescriptor |
dropConstraintDescriptorById(UUID uuid) |
Drop the constraint with the given UUID.
|
ConstraintDescriptor |
elementAt(int n) |
Return the nth (0-based) element in the list.
|
ConstraintDescriptor |
getConstraintDescriptor(UUID indexUUID) |
Get the ConstraintDescriptor with the matching UUID String for the backing index.
|
ConstraintDescriptor |
getConstraintDescriptorById(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 enforced) |
Return a list of constraints where enforced 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.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public void setScanned(boolean scanned)
scanned
- Whether or not the underlying system table has been scanned.public boolean getScanned()
public ConstraintDescriptor getConstraintDescriptor(UUID indexUUID)
indexUUID
- The UUID for the backing index.public ConstraintDescriptor getConstraintDescriptorById(UUID uuid)
uuid
- The constraint id.public ConstraintDescriptor dropConstraintDescriptorById(UUID uuid)
uuid
- The constraint id.public ConstraintDescriptor getConstraintDescriptorByName(SchemaDescriptor sd, java.lang.String name)
sd
- The constraint schema descriptor.name
- The constraint name.public ReferencedKeyConstraintDescriptor getPrimaryKey()
public ConstraintDescriptorList getConstraintDescriptorList(boolean enforced)
enforced
- true or falsepublic ConstraintDescriptor elementAt(int n)
n
- Which element to return.public ConstraintDescriptorList getSubList(int type)
type
- The constraint type.Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.