|
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()
CachingList
true
if this list is currently caching
results retrieved from the list; otherwise returns
false
.isCaching
in interface CachingList
public void abortCaching()
CachingList
abortCaching
in interface CachingList
public Object get(int arg)
get
in interface List
get
in class AbstractList
public int size()
size
in interface List
size
in class AbstractCollection
public 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 List
hashCode
in class AbstractList
public 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 List
equals
in class AbstractList
public void classesChanged(Set changed)
ClassChangeListener
Invoked 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 ClassChangeListener
com.solarmetric.kodo.runtime.datacache.query.ClassChangeListener
classes
- a Set
of Class
objects that
correspond to instances that have changedpublic void close() throws JDOException
ResultList
close
in interface ResultList
public boolean isClosed() throws JDOException
ResultList
isClosed
in interface ResultList
public void checkClosed() throws JDOException
ResultList
checkClosed
in interface ResultList
public int getInstantiatedCount()
ResultList
getInstantiatedCount
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 |