|
||||||||||
| 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
public abstract class AbstractRDBMSQueryResult
Abstract representation of a QueryResult for RDBMS queries. Based on the assumption that we have a JDBC ResultSet, and we are extracting the results using a ResultObjectFactory.
| Field Summary | |
|---|---|
protected org.datanucleus.store.query.ResultObjectFactory |
rof
ResultObjectFactory for converting the result set into objects. |
protected ResultSet |
rs
The ResultSet containing the results. |
| 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 | |
|---|---|
AbstractRDBMSQueryResult(org.datanucleus.store.query.Query query,
org.datanucleus.store.query.ResultObjectFactory rof,
ResultSet rs)
Constructor of the result from a Query. |
|
| Method Summary | |
|---|---|
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 ObjectManager, meaning that thereafter it just behaves like a List. |
int |
hashCode()
Override for compatibility with equals(). |
| Methods inherited from class org.datanucleus.store.query.AbstractQueryResult |
|---|
add, add, addAll, addConnectionListener, assertIsOpen, clear, closingConnection, contains, containsAll, equals, get, getSizeUsingMethod, indexOf, isEmpty, isOpen, iterator, lastIndexOf, listIterator, remove, set, size, subList, toArray, toArray |
| 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 |
| Field Detail |
|---|
protected ResultSet rs
protected org.datanucleus.store.query.ResultObjectFactory rof
| Constructor Detail |
|---|
public AbstractRDBMSQueryResult(org.datanucleus.store.query.Query query,
org.datanucleus.store.query.ResultObjectFactory rof,
ResultSet rs)
query - The Queryrof - The factory to retrieve results fromrs - The ResultSet from the Query Statement| Method Detail |
|---|
public void disconnect()
disconnect in interface org.datanucleus.store.query.QueryResultdisconnect in class org.datanucleus.store.query.AbstractQueryResultpublic void close()
close in interface org.datanucleus.store.query.QueryResultclose in class org.datanucleus.store.query.AbstractQueryResultprotected void closeResults()
closeResults in class org.datanucleus.store.query.AbstractQueryResultpublic int hashCode()
hashCode in interface CollectionhashCode in interface ListhashCode in class org.datanucleus.store.query.AbstractQueryResult
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||