Package org.apache.openjpa.datacache
Class QueryCacheStoreQuery.CachedList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<java.lang.Object>
-
- org.apache.openjpa.datacache.QueryCacheStoreQuery.CachedList
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<java.lang.Object>,java.util.Collection<java.lang.Object>,java.util.List<java.lang.Object>
- Enclosing class:
- QueryCacheStoreQuery
public static class QueryCacheStoreQuery.CachedList extends java.util.AbstractList<java.lang.Object> implements java.io.SerializableResult list implementation for a cached query result. Public for testing.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CachedList(QueryResult res, boolean proj, StoreContext ctx, FetchConfiguration fc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget(int idx)intsize()java.lang.ObjectwriteReplace()-
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
-
-
-
-
Constructor Detail
-
CachedList
public CachedList(QueryResult res, boolean proj, StoreContext ctx, FetchConfiguration fc)
-
-
Method Detail
-
get
public java.lang.Object get(int idx)
- Specified by:
getin interfacejava.util.List<java.lang.Object>- Specified by:
getin classjava.util.AbstractList<java.lang.Object>
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection<java.lang.Object>- Specified by:
sizein interfacejava.util.List<java.lang.Object>- Specified by:
sizein classjava.util.AbstractCollection<java.lang.Object>
-
writeReplace
public java.lang.Object writeReplace() throws java.io.ObjectStreamException- Throws:
java.io.ObjectStreamException
-
-