public final class ScrollableQueryResult extends AbstractRDBMSQueryResult implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,Object> |
resultIds |
bulkLoadedValueByMemberNumber, closeStatementWithResultSet, rof, rsclosed, connectionListeners, loadResultsAtCommit, query, resultSizeMethod, sizemodCount| Constructor and Description |
|---|
ScrollableQueryResult(org.datanucleus.store.query.Query query,
ResultObjectFactory rof,
ResultSet rs,
Collection candidates)
Constructor of the result from a Query.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cacheQueryResults() |
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(Object o) |
Object |
get(int index)
Method to retrieve a particular element from the list.
|
protected Object |
getObjectForIndex(int index)
Accessor for the result object at an index.
|
protected int |
getSizeUsingMethod()
Method to get the size using the "resultSizeMethod".
|
int |
hashCode() |
void |
initialise() |
Iterator |
iterator()
Accessor for an iterator for the results.
|
ListIterator |
listIterator()
Accessor for an iterator for the results.
|
protected void |
loadObjects(int start,
int maxNumber)
Convenience method to load up rows starting at the specified position.
|
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
protected Object |
writeReplace()
Handle serialisation by returning a java.util.ArrayList of all of the results for this query
after disconnecting the query which has the consequence of enforcing the load of all objects.
|
closeResults, disconnect, registerMemberBulkResultSet, setCloseStatementWithResultSetadd, add, addAll, addConnectionListener, assertIsOpen, clear, contains, containsAll, indexOf, isEmpty, isOpen, lastIndexOf, remove, set, size, subListlistIterator, removeRangeaddAll, remove, removeAll, retainAll, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, streamaddAll, remove, removeAll, replaceAll, retainAll, sort, spliteratorpublic ScrollableQueryResult(org.datanucleus.store.query.Query query,
ResultObjectFactory rof,
ResultSet rs,
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 = falsepublic void initialise()
initialise in class AbstractRDBMSQueryResultprotected void loadObjects(int start,
int maxNumber)
start - Start rowmaxNumber - Max number to process (-1 means no maximum)protected Object getObjectForIndex(int index)
index - The list index positionpublic void close()
close in interface org.datanucleus.store.query.QueryResultclose in class AbstractRDBMSQueryResultprotected void closingConnection()
closingConnection in class org.datanucleus.store.query.AbstractQueryResultprotected void cacheQueryResults()
public Iterator iterator()
public ListIterator listIterator()
listIterator in interface ListlistIterator in class org.datanucleus.store.query.AbstractQueryResultpublic boolean equals(Object o)
equals in interface Collectionequals in interface Listequals in class AbstractRDBMSQueryResultpublic int hashCode()
hashCode in interface CollectionhashCode in interface ListhashCode in class AbstractRDBMSQueryResultpublic Object get(int index)
protected int getSizeUsingMethod()
getSizeUsingMethod in class org.datanucleus.store.query.AbstractQueryResultpublic Object[] toArray()
toArray in interface CollectiontoArray in interface ListtoArray in class org.datanucleus.store.query.AbstractQueryResultpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface ListtoArray in class org.datanucleus.store.query.AbstractQueryResultprotected Object writeReplace() throws ObjectStreamException
ObjectStreamException - thrown if an error occursCopyright © 2015. All rights reserved.