org.apache.openjpa.lib.rop
Class LazyForwardResultList
java.lang.Object
org.apache.openjpa.lib.rop.AbstractResultList
org.apache.openjpa.lib.rop.AbstractSequentialResultList
org.apache.openjpa.lib.rop.LazyForwardResultList
- All Implemented Interfaces:
- Serializable, Iterable, Collection, List, ResultList, Closeable
public class LazyForwardResultList
- extends AbstractSequentialResultList
- implements ResultList
Lazy forward-only result list.
- Author:
- Abe White
- See Also:
- Serialized Form
Methods inherited from class org.apache.openjpa.lib.rop.AbstractResultList |
add, add, addAll, addAll, assertOpen, clear, finalize, remove, remove, removeAll, retainAll, set, subList |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
LazyForwardResultList
public LazyForwardResultList(ResultObjectProvider rop)
isProviderOpen
public boolean isProviderOpen()
- Description copied from interface:
ResultList
- Returns true if the provider backing this list is open.
- Specified by:
isProviderOpen
in interface ResultList
isClosed
public boolean isClosed()
- Description copied from interface:
ResultList
- Returns true if the list has been closed.
- Specified by:
isClosed
in interface ResultList
close
public void close()
- Description copied from interface:
ResultList
- Close the list.
- Specified by:
close
in interface ResultList
- Specified by:
close
in interface Closeable
get
public Object get(int index)
- Specified by:
get
in interface List
- Overrides:
get
in class AbstractSequentialResultList
itr
protected ListIterator itr(int index)
- Description copied from class:
AbstractSequentialResultList
- Implement this method and
List.size()
.
- Specified by:
itr
in class AbstractSequentialResultList
size
public int size()
- Specified by:
size
in interface Collection
- Specified by:
size
in interface List
writeReplace
public Object writeReplace()
throws ObjectStreamException
- Throws:
ObjectStreamException
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Collection
- Specified by:
hashCode
in interface List
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object other)
- Specified by:
equals
in interface Collection
- Specified by:
equals
in interface List
- Overrides:
equals
in class Object
Copyright © 2006 Apache Software Foundation. All Rights Reserved.