Package org.apache.cayenne
Interface QueryResult<T>
- All Superinterfaces:
- Iterable<QueryResultItem>
- All Known Implementing Classes:
- GenericQueryResult,- ProcedureResult
public interface QueryResult<T> extends Iterable<QueryResultItem>
Represents a collection of items which are results of a multipart query execution.
- Since:
- 4.0
- 
Method SummaryModifier and Type Method Description int[]firstBatchUpdateCount()A utility method for quickly retrieving the first batch update count array from the response.List<T>firstList()A utility method for quickly retrieving the first list in the response.intfirstUpdateCount()A utility method for quick retrieval of the first update count from the response.booleanisList()Returns whether current iteration result is a list or an update count.intsize()Returns a number of results in the response.Methods inherited from interface java.lang.IterableforEach, iterator, spliterator
- 
Method Details- 
sizeint size()Returns a number of results in the response.
- 
isListboolean isList()Returns whether current iteration result is a list or an update count.
- 
firstListA utility method for quickly retrieving the first list in the response. Returns null if the query has no lists.
- 
firstBatchUpdateCountint[] firstBatchUpdateCount()A utility method for quickly retrieving the first batch update count array from the response.
- 
firstUpdateCountint firstUpdateCount()A utility method for quick retrieval of the first update count from the response.
 
-