|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgpruitt.datamodeler.core.UniqueKeySet
public class UniqueKeySet
A collection of UniqueKeys on a Table
UniqueKey
,
Table
Field Summary | |
---|---|
protected java.util.List<UniqueKey> |
list
|
protected java.util.Map<java.lang.String,UniqueKey> |
map
|
protected Table |
table
|
Constructor Summary | |
---|---|
UniqueKeySet(Table table)
Constructor |
Method Summary | |
---|---|
UniqueKey |
add(UniqueKey uk)
Adds a UniqueKey to the set |
boolean |
contains(java.lang.String name)
Tests whether the set contains a UniqueKey by the given name |
boolean |
contains(UniqueKey uk)
Tests whether the set contains a UniqueKey |
UniqueKey |
get(int index)
Gets a UniqueKey from the set by index |
UniqueKey |
get(java.lang.String name)
Gets a UniqueKey from the set by name |
Table |
getTable()
Gets the Table being constrained |
boolean |
isEmpty()
Returns true if the set has no UniqueKeys in it |
java.util.Iterator<UniqueKey> |
iterator()
Gets a read-only iterator over the UniqueKeys in the set |
int |
size()
Gets the number of UniqueKeys in the set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Table table
protected final java.util.Map<java.lang.String,UniqueKey> map
protected final java.util.List<UniqueKey> list
Constructor Detail |
---|
public UniqueKeySet(Table table)
table
- the Table being constrained by the UniqueKeyMethod Detail |
---|
public Table getTable()
public UniqueKey add(UniqueKey uk)
uk
- the UniqueKey
public UniqueKey get(int index)
index
- the index
public UniqueKey get(java.lang.String name)
name
- the name of the UniqueKey
public boolean contains(java.lang.String name)
name
- the name of the UniqueKey
public boolean contains(UniqueKey uk)
uk
- the UniqueKey
public java.util.Iterator<UniqueKey> iterator()
iterator
in interface java.lang.Iterable<UniqueKey>
public boolean isEmpty()
public int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |