Package org.apache.cayenne
Interface QueryResult<T>
- All Superinterfaces:
Iterable<QueryResultItem>
- All Known Implementing Classes:
GenericQueryResult,ProcedureResult
Represents a collection of items which are results of a multipart query execution.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionint[]A utility method for quickly retrieving the first batch update count array from the response.A utility method for quickly retrieving the first list in the response.intA 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.Iterable
forEach, iterator, spliterator
-
Method Details
-
size
int size()Returns a number of results in the response. -
isList
boolean isList()Returns whether current iteration result is a list or an update count. -
firstList
A utility method for quickly retrieving the first list in the response. Returns null if the query has no lists. -
firstBatchUpdateCount
int[] firstBatchUpdateCount()A utility method for quickly retrieving the first batch update count array from the response. -
firstUpdateCount
int firstUpdateCount()A utility method for quick retrieval of the first update count from the response.
-