Class RandomAccessResultList
java.lang.Object
org.apache.openjpa.lib.rop.AbstractResultList
org.apache.openjpa.lib.rop.AbstractNonSequentialResultList
org.apache.openjpa.lib.rop.RandomAccessResultList
- All Implemented Interfaces:
Serializable, Iterable, Collection, List, ResultList, Closeable
- Direct Known Subclasses:
SoftRandomAccessResultList
Random-access result list implementation. It maintains a map
of the items that we have already instantiated.
- Author:
- Marc Prud'hommeaux, Abe White
- See Also:
-
Field Summary
Fields inherited from class AbstractNonSequentialResultList
PAST_END -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the list.booleanprotected ObjectgetInternal(int index) Implement this method andList.size().inthashCode()booleanisClosed()Returns true if the list has been closed.booleanReturns true if the provider backing this list is open.protected MapOverride this method to control what kind of map is used for the instantiated rows.intsize()toString()Methods inherited from class AbstractNonSequentialResultList
contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, subList, toArray, toArrayMethods inherited from class AbstractResultList
add, add, addAll, addAll, assertOpen, clear, getUserObject, remove, remove, removeAll, retainAll, set, setUserObjectMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
replaceAll, sort, spliterator
-
Constructor Details
-
RandomAccessResultList
-
-
Method Details
-
newRowMap
Override this method to control what kind of map is used for the instantiated rows. -
isProviderOpen
public boolean isProviderOpen()Description copied from interface:ResultListReturns true if the provider backing this list is open. -
isClosed
public boolean isClosed()Description copied from interface:ResultListReturns true if the list has been closed. -
close
-
getInternal
Description copied from class:AbstractNonSequentialResultListImplement this method andList.size(). ReturnAbstractNonSequentialResultList.PAST_ENDif the index is out of bounds.- Specified by:
getInternalin classAbstractNonSequentialResultList
-
size
public int size() -
writeReplace
- Throws:
ObjectStreamException
-
toString
-
hashCode
-
equals
-