org.apache.openjpa.lib.rop
Class WindowResultList
java.lang.Object
org.apache.openjpa.lib.rop.AbstractResultList
org.apache.openjpa.lib.rop.AbstractNonSequentialResultList
org.apache.openjpa.lib.rop.WindowResultList
- All Implemented Interfaces:
- Serializable, Iterable, Collection, List, ResultList, Closeable
public class WindowResultList
- extends AbstractNonSequentialResultList
ResultList implementation that uses a forward-scrolling window of results.
- Author:
- Abe White
- See Also:
- Serialized Form
Methods inherited from class org.apache.openjpa.lib.rop.AbstractNonSequentialResultList |
contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, subList, toArray, toArray |
Methods inherited from class org.apache.openjpa.lib.rop.AbstractResultList |
add, add, addAll, addAll, assertOpen, clear, getUserObject, remove, remove, removeAll, retainAll, set, setUserObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WindowResultList
public WindowResultList(ResultObjectProvider rop)
WindowResultList
public WindowResultList(ResultObjectProvider rop,
int windowSize)
isProviderOpen
public boolean isProviderOpen()
- Description copied from interface:
ResultList
- Returns true if the provider backing this list is open.
isClosed
public boolean isClosed()
- Description copied from interface:
ResultList
- Returns true if the list has been closed.
close
public void close()
- Description copied from interface:
ResultList
- Close the list.
size
public int size()
getInternal
public Object getInternal(int index)
- Description copied from class:
AbstractNonSequentialResultList
- Implement this method and
List.size()
. Return AbstractNonSequentialResultList.PAST_END
if the index is out of bounds.
- Specified by:
getInternal
in class AbstractNonSequentialResultList
writeReplace
public Object writeReplace()
throws ObjectStreamException
- Throws:
ObjectStreamException
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.