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.Serializable
Result 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.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
-
-
-
-
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:
get
in interfacejava.util.List<java.lang.Object>
- Specified by:
get
in classjava.util.AbstractList<java.lang.Object>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<java.lang.Object>
- Specified by:
size
in interfacejava.util.List<java.lang.Object>
- Specified by:
size
in classjava.util.AbstractCollection<java.lang.Object>
-
writeReplace
public java.lang.Object writeReplace() throws java.io.ObjectStreamException
- Throws:
java.io.ObjectStreamException
-
-