Package org.datanucleus.store.odf.query
Class ODFCandidateList
- java.lang.Object
-
- org.datanucleus.store.query.AbstractLazyLoadList
-
- org.datanucleus.store.query.AbstractCandidateLazyLoadList
-
- org.datanucleus.store.odf.query.ODFCandidateList
-
- All Implemented Interfaces:
Iterable
,Collection
,List
public class ODFCandidateList extends org.datanucleus.store.query.AbstractCandidateLazyLoadList
Wrapper for a List of candidate instances from ODF. Loads the instances from the workbook lazily.
-
-
Constructor Summary
Constructors Constructor Description ODFCandidateList(Class cls, boolean subclasses, org.datanucleus.ExecutionContext ec, String cacheType, org.datanucleus.store.connection.ManagedConnection mconn, boolean ignoreCache, org.datanucleus.FetchPlan fp)
Constructor for the lazy loaded ODF candidate list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getSize()
protected Object
retrieveObjectForIndex(int index)
-
Methods inherited from class org.datanucleus.store.query.AbstractLazyLoadList
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, isOpen, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Constructor Detail
-
ODFCandidateList
public ODFCandidateList(Class cls, boolean subclasses, org.datanucleus.ExecutionContext ec, String cacheType, org.datanucleus.store.connection.ManagedConnection mconn, boolean ignoreCache, org.datanucleus.FetchPlan fp)
Constructor for the lazy loaded ODF candidate list.- Parameters:
cls
- The candidate classsubclasses
- Whether to include subclassesec
- execution contextcacheType
- Type of cachingmconn
- Connection to the datastoreignoreCache
- Whether to ignore the cache on object retrievalfp
- FetchPlan for retrieval
-
-
Method Detail
-
getSize
protected int getSize()
- Specified by:
getSize
in classorg.datanucleus.store.query.AbstractLazyLoadList
-
retrieveObjectForIndex
protected Object retrieveObjectForIndex(int index)
- Specified by:
retrieveObjectForIndex
in classorg.datanucleus.store.query.AbstractLazyLoadList
-
-