|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.rop.AbstractResultList
org.apache.openjpa.lib.rop.AbstractNonSequentialResultList
org.apache.openjpa.lib.rop.RandomAccessResultList
public class RandomAccessResultList
Random-access result list implementation. It maintains a map of the items that we have already instantiated.
| Field Summary |
|---|
| Fields inherited from class org.apache.openjpa.lib.rop.AbstractNonSequentialResultList |
|---|
PAST_END |
| Constructor Summary | |
|---|---|
RandomAccessResultList(ResultObjectProvider rop)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the list. |
boolean |
equals(java.lang.Object other)
|
protected java.lang.Object |
getInternal(int index)
Implement this method and List.size(). |
int |
hashCode()
|
boolean |
isClosed()
Returns true if the list has been closed. |
boolean |
isProviderOpen()
Returns true if the provider backing this list is open. |
protected java.util.Map |
newRowMap()
Override this method to control what kind of map is used for the instantiated rows. |
int |
size()
|
java.lang.String |
toString()
|
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, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RandomAccessResultList(ResultObjectProvider rop)
| Method Detail |
|---|
protected java.util.Map newRowMap()
public boolean isProviderOpen()
ResultList
public boolean isClosed()
ResultList
public void close()
ResultList
protected java.lang.Object getInternal(int index)
AbstractNonSequentialResultListList.size(). Return AbstractNonSequentialResultList.PAST_END
if the index is out of bounds.
getInternal in class AbstractNonSequentialResultListpublic int size()
public java.lang.Object writeReplace()
throws java.io.ObjectStreamException
java.io.ObjectStreamExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.ListhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in interface java.util.Collectionequals in interface java.util.Listequals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||