|
|||||||||
| 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.AbstractWTList
wt.fc.collections.WTArrayList
public class WTArrayList
An array-based implementation of WTArrayList
WTArrayList 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, WTArrayList provides a "deep" clone in which the references are copied and the Persistables in the set are cloned using PersistenceCloner.
A WTArrayList can be constructed with a key mask. The default key mask
is CollectionsHelper.OBJECT_IDENTIFIER.
Supported API: true
Extendable: false
| Constructor Summary | |
|---|---|
WTArrayList()
Supported API: true |
|
WTArrayList(Collection c)
Supported API: true |
|
WTArrayList(Collection c,
int key_mask)
Supported API: true |
|
WTArrayList(int initial_capacity)
Supported API: true |
|
WTArrayList(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 |
WTArrayList |
clone(boolean deep)
Supported API: true |
Iterator |
persistableIterator()
Returns an iterator over the objects in this collection, as Persistables. |
Iterator |
queryKeyIterator()
Returns an iterator over the QueryKeys in this collection. |
Iterator |
referenceIterator()
Returns an Iterator over the objects in this collection, as WTReferences. |
| 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, connect, connect, connect, connectAll, contains, contains, contains, contains, containsInstance, containsOnly, deflate, inflate, isEnabled, iterator, persistableCollection, remove, remove, remove, remove, removeAll, retainAll, toArray, toArray, toArray, toArray, toArray, toArray, toIdArray |
| Methods inherited from interface java.util.List |
|---|
add, contains, containsAll, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public WTArrayList()
public WTArrayList(int initial_capacity)
initial_capacity -
public WTArrayList(int initial_capacity,
int key_mask)
initial_capacity - key_mask - public WTArrayList(Collection c)
c -
public WTArrayList(Collection c,
int key_mask)
c - key_mask - | Method Detail |
|---|
public Object clone()
clone in class Objectpublic WTArrayList clone(boolean deep)
deep -
public Iterator persistableIterator()
throws WTException
persistableIterator in interface WTCollectionpersistableIterator in class wt.fc.collections.AbstractWTCollectionConcurrentModificationException - If the collection is modified
while the iterator is being processed.
WTExceptionpublic Iterator queryKeyIterator()
queryKeyIterator in interface WTCollectionqueryKeyIterator in class wt.fc.collections.AbstractWTCollectionConcurrentModificationException - If the collection is modified
while the iterator is being processed.public Iterator referenceIterator()
referenceIterator in interface WTCollectionreferenceIterator in class wt.fc.collections.AbstractWTCollectionConcurrentModificationException - If the collection is modified
while the iterator is being processed.
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 | ||||||||