org.apache.openjpa.datacache
Class QueryCacheStoreQuery.CachedList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList
          extended by org.apache.openjpa.datacache.QueryCacheStoreQuery.CachedList
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List
Enclosing class:
QueryCacheStoreQuery

public static class QueryCacheStoreQuery.CachedList
extends java.util.AbstractList
implements java.io.Serializable

Result list implementation for a cached query result. Package-protected for testing.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
QueryCacheStoreQuery.CachedList(QueryResult res, boolean proj, StoreContext ctx)
           
 
Method Summary
 java.lang.Object get(int idx)
           
 int size()
           
 java.lang.Object writeReplace()
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

QueryCacheStoreQuery.CachedList

public QueryCacheStoreQuery.CachedList(QueryResult res,
                                       boolean proj,
                                       StoreContext ctx)
Method Detail

get

public java.lang.Object get(int idx)
Specified by:
get in interface java.util.List
Specified by:
get in class java.util.AbstractList

size

public int size()
Specified by:
size in interface java.util.Collection
Specified by:
size in interface java.util.List
Specified by:
size in class java.util.AbstractCollection

writeReplace

public java.lang.Object writeReplace()
                              throws java.io.ObjectStreamException
Throws:
java.io.ObjectStreamException