|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--com.solarmetric.kodo.runtime.datacache.query.CachingRandomAccessList
A wrapper around a ResultList that builds up a list of
all the OIDs in this list and registers that list with the
query cache.
Abandons monitoring and registering if one of the classes
in #getAccessPathClasses is modified while the query
results are being loaded, or if #getAccessPathClasses
is null.
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
protected |
CachingRandomAccessList(ResultList wrapee,
QueryKey key,
DataCacheStoreManager store)
|
| Method Summary | |
void |
abortCaching()
Instructs this list to stop caching results returned from this list. |
void |
checkClosed()
Check to see if this ResultList has been closed, and if so, throw a JDOUserException. |
void |
classesChanged(Set changed)
Invoked when objects of the types in the classes set have been changed. |
void |
close()
Close the list. |
boolean |
equals(Object other)
Unless the list is completely instantiated, returns the identity equals for objects, since returning the default Collection.equals(java.lang.Object) behanvior would mean that
we have to traverse the entire list. |
Object |
get(int arg)
|
int |
getInstantiatedCount()
Returns the number of objects that are currently instantiated internally in this list. |
int |
hashCode()
Unless the list is completely instantiated, returns the identity hash code of this object, since returning the default Collection.hashCode() behanvior would mean that
we have to traverse the entire list. |
boolean |
isCaching()
Returns true if this list is currently caching
results retrieved from the list; otherwise returns
false. |
boolean |
isClosed()
Returns true if the list has been closed. |
int |
size()
|
Object |
writeReplace()
|
| Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|
| Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
| Constructor Detail |
protected CachingRandomAccessList(ResultList wrapee,
QueryKey key,
DataCacheStoreManager store)
| Method Detail |
public boolean isCaching()
CachingListtrue if this list is currently caching
results retrieved from the list; otherwise returns
false.isCaching in interface CachingListpublic void abortCaching()
CachingListabortCaching in interface CachingListpublic Object get(int arg)
get in interface Listget in class AbstractListpublic int size()
size in interface Listsize in class AbstractCollectionpublic int hashCode()
Unless the list is completely instantiated, returns the identity
hash code of this object, since returning the
default Collection.hashCode() behanvior would mean that
we have to traverse the entire list.
If the list is completely instantiated, the standard
Collection.hashCode() contract is respected.
hashCode in interface ListhashCode in class AbstractListpublic boolean equals(Object other)
Unless the list is completely instantiated,
returns the identity equals for objects, since returning the
default Collection.equals(java.lang.Object) behanvior would mean that
we have to traverse the entire list.
If the list is completely instantiated, the standard
Collection.equals(java.lang.Object) contract is respected.
equals in interface Listequals in class AbstractListpublic void classesChanged(Set changed)
ClassChangeListenerInvoked when objects of the types in the
classes set have been changed. This could mean
that items have been updated, deleted, or added.
classesChanged in interface ClassChangeListenercom.solarmetric.kodo.runtime.datacache.query.ClassChangeListenerclasses - a Set of Class objects that
correspond to instances that have changed
public void close()
throws JDOException
ResultListclose in interface ResultList
public boolean isClosed()
throws JDOException
ResultListisClosed in interface ResultList
public void checkClosed()
throws JDOException
ResultListcheckClosed in interface ResultListpublic int getInstantiatedCount()
ResultListgetInstantiatedCount in interface ResultList
public Object writeReplace()
throws ObjectStreamException
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||