org.apache.openjpa.lib.rop
Class SimpleResultList
java.lang.Object
org.apache.openjpa.lib.rop.AbstractResultList
org.apache.openjpa.lib.rop.AbstractNonSequentialResultList
org.apache.openjpa.lib.rop.SimpleResultList
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List, ResultList, Closeable
public class SimpleResultList
- extends AbstractNonSequentialResultList
An almost stateless ResultList
designed for use with result
object providers backed by efficient random-access data structures, such
as the ListResultObjectProvider
. This result list does not
perform any caching.
- Author:
- Abe White
- See Also:
- Serialized Form
Method Summary |
void |
close()
Close the list. |
java.lang.Object |
getInternal(int index)
Implement this method and List.size() . |
boolean |
isClosed()
Returns true if the list has been closed. |
boolean |
isProviderOpen()
Returns true if the provider backing this list is open. |
int |
size()
|
java.lang.Object |
writeReplace()
|
Methods inherited from class org.apache.openjpa.lib.rop.AbstractNonSequentialResultList |
contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, toArray, toArray |
Methods inherited from class org.apache.openjpa.lib.rop.AbstractResultList |
add, add, addAll, addAll, assertOpen, clear, remove, remove, removeAll, retainAll, set, subList |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.List |
equals, hashCode |
SimpleResultList
public SimpleResultList(ResultObjectProvider rop)
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.
getInternal
public java.lang.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
size
public int size()
writeReplace
public java.lang.Object writeReplace()
throws java.io.ObjectStreamException
- Throws:
java.io.ObjectStreamException
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.