|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--kodo.util.AbstractLRSProxyCollection
A collection proxy designed for collections backed by extremely large
result sets in which each call to iterator() may perform a database
query. Changes to the collection are tracked through a
ChangeTracker. This collection has the following limitations:
size method may return Integer.MAX_VALUE.
| Constructor Summary | |
AbstractLRSProxyCollection(Class elementType,
boolean ordered)
Constructor. |
|
| Method Summary | |
boolean |
add(Object o)
|
boolean |
addAll(Collection all)
|
void |
added(Object val)
Notify the tracker that the given object was added. |
void |
changed(Object val)
Notify the tracker that the given object was changed. |
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
containsAll(Collection all)
|
Object |
copy(Object orig)
Return an unproxied copy of the given instance. |
protected abstract int |
count()
Return the number of elements in the collection, or Integer.MAX_VALUE. |
boolean |
evaluate(Object o)
|
Collection |
getAdded()
Return the collection of values that need to be added to the managed container. |
Collection |
getChanged()
Return the set of elements that have changed. |
ChangeTracker |
getChangeTracker()
Return the change tracker for this proxy, or null if none. |
int |
getNextSequence()
The next element sequence value for this proxy at load time. |
KodoStateManager |
getOwner()
Return the owning object. |
int |
getOwnerField()
Return the owning field index. |
Collection |
getRemoved()
Return the set of values that need to be removed from the managed container. |
protected abstract boolean |
has(Object o)
Return whether the collection contains the given element. |
boolean |
isEmpty()
|
boolean |
isTracking()
Return true if this tracker has an up-to-date view of all the changes to the container it is managing. |
Iterator |
iterator()
|
protected abstract Iterator |
itr()
Implement this method to return an iterator over the contents of the collection. |
boolean |
remove(Object o)
|
boolean |
removeAll(Collection all)
|
void |
removed(Object val)
Notify the tracker that the given object was removed. |
boolean |
retainAll(Collection all)
|
void |
setNextSequence(int seq)
The maximum element sequence value for this proxy at load time. |
void |
setOwner(KodoStateManager sm,
int field)
Reset the state of the proxy, and set the owning JDO instance of the proxy and the name of the field it is assigned to. |
int |
size()
|
void |
startTracking()
Reset the state of the change tracker, and turn change tracking back on if it has been disabled. |
void |
stopTracking()
Tell the tracker to stop tracking changes for its container. |
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
protected Object |
writeReplace()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Set |
equals, hashCode |
| Constructor Detail |
public AbstractLRSProxyCollection(Class elementType,
boolean ordered)
elementType - the allowed type of elements, or null for no
restrictionsordered - true if this collection is ordered| Method Detail |
public void setOwner(KodoStateManager sm,
int field)
ProxysetOwner in interface Proxypublic KodoStateManager getOwner()
ProxygetOwner in interface Proxypublic int getOwnerField()
ProxygetOwnerField in interface Proxypublic ChangeTracker getChangeTracker()
ProxygetChangeTracker in interface Proxypublic Object copy(Object orig)
Proxycopy in interface Proxypublic boolean add(Object o)
add in interface Setpublic boolean addAll(Collection all)
addAll in interface Setpublic boolean remove(Object o)
remove in interface Setpublic boolean removeAll(Collection all)
removeAll in interface Setpublic boolean retainAll(Collection all)
retainAll in interface Setpublic void clear()
clear in interface Setpublic boolean contains(Object o)
contains in interface Setpublic boolean containsAll(Collection all)
containsAll in interface Setpublic Object[] toArray()
toArray in interface Setpublic Object[] toArray(Object[] a)
toArray in interface Setpublic int size()
size in interface Setpublic boolean isEmpty()
isEmpty in interface Setpublic Iterator iterator()
iterator in interface Set
protected Object writeReplace()
throws ObjectStreamException
protected abstract Iterator itr()
Iterator.remove() method,
and may implement Closeable.protected abstract boolean has(Object o)
protected abstract int count()
Integer.MAX_VALUE.public boolean evaluate(Object o)
evaluate in interface com.solarmetric.apache.commons.collections.Predicatepublic boolean isTracking()
ChangeTrackerisTracking in interface ChangeTrackerpublic void startTracking()
ChangeTrackerstartTracking in interface ChangeTrackerpublic void stopTracking()
ChangeTrackerstopTracking in interface ChangeTrackerpublic Collection getAdded()
ChangeTrackergetAdded in interface ChangeTrackerpublic Collection getRemoved()
ChangeTrackergetRemoved in interface ChangeTrackerpublic Collection getChanged()
ChangeTrackergetChanged in interface ChangeTrackerpublic void added(Object val)
ChangeTrackeradded in interface ChangeTrackerpublic void removed(Object val)
ChangeTrackerremoved in interface ChangeTrackerpublic void changed(Object val)
ChangeTrackerchanged in interface ChangeTrackerpublic int getNextSequence()
ChangeTrackergetNextSequence in interface ChangeTrackerpublic void setNextSequence(int seq)
ChangeTrackersetNextSequence in interface ChangeTracker
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||