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

public Class ConstraintDescriptorList

extends ArrayList<ConstraintDescriptor>
Class Inheritance
Imports
java.util.ArrayList, org.apache.derby.catalog.UUID

Field Summary

Modifier and TypeField and Description
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ConstraintDescriptor

Returns:

The matching ConstraintDescriptor.
dropConstraintDescriptorById
(UUID
The constraint id.
uuid
)

Drop the constraint with the given UUID.

public ConstraintDescriptor

Returns:

The nth element in the list.
elementAt
(int
Which element to return.
n
)

Return the nth (0-based) element in the list.

public ConstraintDescriptor

Returns:

The matching ConstraintDescriptor.
getConstraintDescriptor
(UUID
The UUID for the backing index.
indexUUID
)

Get the ConstraintDescriptor with the matching UUID String for the backing index.

public ConstraintDescriptor

Returns:

The matching ConstraintDescriptor.
getConstraintDescriptorById
(UUID
The constraint id.
uuid
)

Get the ConstraintDescriptor with the matching constraint id.

public ConstraintDescriptor

Returns:

The matching ConstraintDescriptor.
getConstraintDescriptorByName
(SchemaDescriptor
The constraint schema descriptor.
sd
,
String
The constraint name.
name
)

Get the ConstraintDescriptor with the matching constraint name.

public ConstraintDescriptorList

Returns:

a constraint descriptor list built from this. Always a new list even if all the elements in this were of the correct type (i.e. not optimized for the case where every element is desired).
getConstraintDescriptorList
(boolean
true or false
enforced
)

Return a list of constraints where enforced is as passed in.

public ReferencedKeyConstraintDescriptor

Returns:

The matching ConstraintDescriptor.
getPrimaryKey
()

Get the ConstraintDescriptor with the matching constraint name.

public boolean

Returns:

Where or not the underlying system table has been scanned.
getScanned
()

Return whether or not the underlying system table has been scanned.

public ConstraintDescriptorList

Returns:

A ConstraintDescriptorList containing the ConstraintDescriptors of the specified type that are in this list.
getSubList
(int
The constraint type.
type
)

Return a ConstraintDescriptorList containing the ConstraintDescriptors of the specified type that are in this list.

public void
setScanned(boolean
Whether or not the underlying system table has been scanned.
scanned
)

Mark whether or not the underlying system table has been scanned.

Inherited from java.util.ArrayList:
addaddaddAlladdAlladdFirstaddLastclearclonecontainsensureCapacityequalsforEachgetgetFirstgetLasthashCodeindexOfisEmptyiteratorlastIndexOflistIteratorlistIteratorremoveremoveremoveAllremoveFirstremoveIfremoveLastremoveRangereplaceAllretainAllsetsizesortspliteratorsubListtoArraytoArraytrimToSize

Field Detail

scannedback to summary
private boolean scanned

Constructor Detail

ConstraintDescriptorListback to summary
public ConstraintDescriptorList()

Method Detail

dropConstraintDescriptorByIdback to summary
public ConstraintDescriptor dropConstraintDescriptorById(UUID uuid)

Drop the constraint with the given UUID.

Parameters
uuid:UUID

The constraint id.

Returns:ConstraintDescriptor

The matching ConstraintDescriptor.

elementAtback to summary
public ConstraintDescriptor elementAt(int n)

Return the nth (0-based) element in the list.

Parameters
n:int

Which element to return.

Returns:ConstraintDescriptor

The nth element in the list.

getConstraintDescriptorback to summary
public ConstraintDescriptor getConstraintDescriptor(UUID indexUUID)

Get the ConstraintDescriptor with the matching UUID String for the backing index.

Parameters
indexUUID:UUID

The UUID for the backing index.

Returns:ConstraintDescriptor

The matching ConstraintDescriptor.

getConstraintDescriptorByIdback to summary
public ConstraintDescriptor getConstraintDescriptorById(UUID uuid)

Get the ConstraintDescriptor with the matching constraint id.

Parameters
uuid:UUID

The constraint id.

Returns:ConstraintDescriptor

The matching ConstraintDescriptor.

getConstraintDescriptorByNameback to summary
public ConstraintDescriptor getConstraintDescriptorByName(SchemaDescriptor sd, String name)

Get the ConstraintDescriptor with the matching constraint name.

Parameters
sd:SchemaDescriptor

The constraint schema descriptor.

name:String

The constraint name.

Returns:ConstraintDescriptor

The matching ConstraintDescriptor.

getConstraintDescriptorListback to summary
public ConstraintDescriptorList getConstraintDescriptorList(boolean enforced)

Return a list of constraints where enforced is as passed in.

Parameters
enforced:boolean

true or false

Returns:ConstraintDescriptorList

a constraint descriptor list built from this. Always a new list even if all the elements in this were of the correct type (i.e. not optimized for the case where every element is desired).

getPrimaryKeyback to summary
public ReferencedKeyConstraintDescriptor getPrimaryKey()

Get the ConstraintDescriptor with the matching constraint name.

Returns:ReferencedKeyConstraintDescriptor

The matching ConstraintDescriptor.

getScannedback to summary
public boolean getScanned()

Return whether or not the underlying system table has been scanned.

Returns:boolean

Where or not the underlying system table has been scanned.

getSubListback to summary
public ConstraintDescriptorList getSubList(int type)

Return a ConstraintDescriptorList containing the ConstraintDescriptors of the specified type that are in this list.

Parameters
type:int

The constraint type.

Returns:ConstraintDescriptorList

A ConstraintDescriptorList containing the ConstraintDescriptors of the specified type that are in this list.

setScannedback to summary
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.

Parameters
scanned:boolean

Whether or not the underlying system table has been scanned.