public abstract class AbstractRDBMSQueryResult<E>
extends org.datanucleus.store.query.AbstractQueryResult<E>
Modifier and Type | Field and Description |
---|---|
protected Map<Object,Map<Integer,Object>> |
bulkLoadedValueByMemberNumber
Map of field values, keyed by the "id" of the object.
|
protected boolean |
closeStatementWithResultSet
Default to closing the statement when closing the resultSet, but allow override.
|
protected ResultObjectFactory<E> |
rof
ResultObjectFactory for converting the result set into objects.
|
protected ResultSet |
rs
The ResultSet containing the results.
|
api, closed, connectionListeners, loadResultsAtCommit, query, resultSizeMethod, size
modCount
Constructor and Description |
---|
AbstractRDBMSQueryResult(org.datanucleus.store.query.Query query,
ResultObjectFactory<E> rof,
ResultSet rs)
Constructor of the result from a Query.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Method to close the results, meaning that they are inaccessible after this point.
|
protected void |
closeResults()
Internal method to close the ResultSet.
|
void |
disconnect()
Method to disconnect the results from the ExecutionContext, meaning that thereafter it just behaves
like a List.
|
boolean |
equals(Object o) |
int |
hashCode() |
abstract void |
initialise() |
void |
registerMemberBulkResultSet(IteratorStatement iterStmt,
ResultSet rs) |
void |
setCloseStatementWithResultSet(boolean flag) |
add, add, addAll, addConnectionListener, assertIsOpen, clear, closingConnection, contains, containsAll, get, getSizeUsingMethod, indexOf, isEmpty, isOpen, iterator, lastIndexOf, listIterator, remove, set, size, subList, toArray, toArray
listIterator, removeRange
addAll, remove, removeAll, retainAll, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream
addAll, remove, removeAll, replaceAll, retainAll, sort, spliterator
protected ResultSet rs
protected ResultObjectFactory<E> rof
protected Map<Object,Map<Integer,Object>> bulkLoadedValueByMemberNumber
protected boolean closeStatementWithResultSet
public AbstractRDBMSQueryResult(org.datanucleus.store.query.Query query, ResultObjectFactory<E> rof, ResultSet rs)
query
- The Queryrof
- The factory to retrieve results fromrs
- The ResultSet from the Query Statementpublic void setCloseStatementWithResultSet(boolean flag)
public void registerMemberBulkResultSet(IteratorStatement iterStmt, ResultSet rs)
public abstract void initialise() throws SQLException
SQLException
public void disconnect()
public void close()
protected void closeResults()
closeResults
in class org.datanucleus.store.query.AbstractQueryResult<E>
public boolean equals(Object o)
Copyright © 2017. All rights reserved.