|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection
wt.fc.collections.AbstractWTCollection
wt.fc.collections.WTHashSet
public class WTHashSet
A hash-based implementation of WTSet.
WTHashSet implements wt.fc.ResultProcessor to provide better integration with the persistence layer. By implementing ResultProcessor, the default collections can be used in place of a QueryResult when retrieving data. The APIs to accomplish this are:
PersistenceManager.find(StatementSpec, ResultProcessor) PersisenceManagerSvr.query(StatementSpec, ResultProcessor)
In addition to a no-arg clone method, WTHashSet provides a "deep" clone in which the references are copied and the Persistables in the set are cloned using PersistenceCloner.
A WTHashSet can be constructed with a key mask. The default key mask
is CollectionsHelper.OBJECT_IDENTIFIER.
Supported API: true
Extendable: false
| Constructor Summary | |
|---|---|
WTHashSet()
Supported API: true |
|
WTHashSet(Collection c)
Supported API: true |
|
WTHashSet(Collection c,
int key_mask)
Supported API: true |
|
WTHashSet(int initial_capacity)
Supported API: true |
|
WTHashSet(int initial_capacity,
int key_mask)
Supported API: true |
|
| Method Summary | |
|---|---|
void |
addElement(Object anObj)
This method is called by the low level persistence layer to add the specified object to the result. |
Object |
clone()
Supported API: true |
WTHashSet |
clone(boolean deep)
Supported API: true |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, isEmpty, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface wt.fc.collections.WTCollection |
|---|
add, addAll, addAll, connect, connect, connect, connectAll, contains, contains, containsOnly, deflate, isEnabled, iterator, persistableCollection, remove, remove, toArray, toArray, toArray, toArray, toArray, toArray, toIdArray |
| Methods inherited from interface java.util.Set |
|---|
add, addAll, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public WTHashSet()
public WTHashSet(int initial_capacity)
initial_capacity -
public WTHashSet(int initial_capacity,
int key_mask)
initial_capacity - key_mask - public WTHashSet(Collection c)
c -
public WTHashSet(Collection c,
int key_mask)
c - key_mask - | Method Detail |
|---|
public Object clone()
clone in class Objectpublic WTHashSet clone(boolean deep)
deep -
public void addElement(Object anObj)
throws WTException
addElement in interface ResultProcessoranObj - Result object to add.
WTException - - if the object can't be added to the result
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||