org.datanucleus.store.query
Interface QueryResult

All Superinterfaces:
java.util.Collection, java.lang.Iterable
All Known Implementing Classes:
AbstractQueryResult, CandidateIdsQueryResult

public interface QueryResult
extends java.util.Collection

Lazy collection results from a Query. The actual result elements are only loaded when accessed.

The lifecycle of a QueryResult is as follows


Method Summary
 void close()
          Method to close the results, making them unusable thereafter.
 void disconnect()
          Method to disconnect the results from the ObjectManager, meaning that thereafter it just behaves like a List.
 boolean handlesResultRange()
           
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

close

void close()
Method to close the results, making them unusable thereafter.


disconnect

void disconnect()
Method to disconnect the results from the ObjectManager, meaning that thereafter it just behaves like a List.


handlesResultRange

boolean handlesResultRange()


Copyright © 2011. All Rights Reserved.