|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList
org.datanucleus.store.query.AbstractQueryResult
org.datanucleus.store.rdbms.query.AbstractRDBMSQueryResult
org.datanucleus.store.rdbms.query.ScrollableQueryResult
public final class ScrollableQueryResult
Lazy collection results from a Query with the ResultSet scrollable. Supports the following query extensions (in addition to those supported by superclasses) :-
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.store.rdbms.query.AbstractRDBMSQueryResult |
|---|
rof, rs |
| Fields inherited from class org.datanucleus.store.query.AbstractQueryResult |
|---|
closed, connectionListeners, loadResultsAtCommit, LOCALISER, query, resultSizeMethod, size |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
ScrollableQueryResult(org.datanucleus.store.query.Query query,
org.datanucleus.store.query.ResultObjectFactory rof,
java.sql.ResultSet rs,
java.util.Collection candidates)
Constructor of the result from a Query. |
|
| Method Summary | |
|---|---|
void |
close()
Method to close the results, making the results unusable thereafter. |
protected void |
closingConnection()
Inform the query result that the connection is being closed so perform any operations now, or rest in peace. |
boolean |
equals(java.lang.Object o)
Equality operator for QueryResults. |
java.lang.Object |
get(int index)
Method to retrieve a particular element from the list. |
protected java.lang.Object |
getObjectForIndex(int index)
Accessor for the result object at an index. |
protected int |
getSizeUsingMethod()
Method to get the size using the "resultSizeMethod". |
java.util.Iterator |
iterator()
Accessor for an iterator for the results. |
java.util.ListIterator |
listIterator()
Accessor for an iterator for the results. |
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
| Methods inherited from class org.datanucleus.store.rdbms.query.AbstractRDBMSQueryResult |
|---|
closeResults, disconnect, getSizeUsingCount, hashCode |
| Methods inherited from class org.datanucleus.store.query.AbstractQueryResult |
|---|
add, add, addAll, addConnectionListener, assertIsOpen, clear, contains, containsAll, indexOf, isEmpty, isOpen, lastIndexOf, remove, set, size, subList |
| Methods inherited from class java.util.AbstractList |
|---|
listIterator, removeRange |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, remove, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
addAll, remove, removeAll, retainAll |
| Methods inherited from interface java.util.List |
|---|
addAll, remove, removeAll, retainAll |
| Constructor Detail |
|---|
public ScrollableQueryResult(org.datanucleus.store.query.Query query,
org.datanucleus.store.query.ResultObjectFactory rof,
java.sql.ResultSet rs,
java.util.Collection candidates)
query - The Queryrof - The factory to retrieve results fromrs - The ResultSet from the Query Statementcandidates - the Candidates collection. Pass this argument only when distinct = false| Method Detail |
|---|
protected java.lang.Object getObjectForIndex(int index)
index - The list index position
public void close()
close in interface org.datanucleus.store.query.QueryResultclose in class AbstractRDBMSQueryResultprotected void closingConnection()
closingConnection in class org.datanucleus.store.query.AbstractQueryResultpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Listiterator in class org.datanucleus.store.query.AbstractQueryResultpublic java.util.ListIterator listIterator()
listIterator in interface java.util.ListlistIterator in class org.datanucleus.store.query.AbstractQueryResultpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collectionequals in interface java.util.Listequals in class org.datanucleus.store.query.AbstractQueryResulto - The object to compare against
public java.lang.Object get(int index)
get in interface java.util.Listget in class org.datanucleus.store.query.AbstractQueryResultindex - The index of the element
protected int getSizeUsingMethod()
getSizeUsingMethod in class org.datanucleus.store.query.AbstractQueryResultpublic java.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.ListtoArray in class org.datanucleus.store.query.AbstractQueryResultpublic java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.CollectiontoArray in interface java.util.ListtoArray in class org.datanucleus.store.query.AbstractQueryResult
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||