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 Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and 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.
    `int` | `firstUpdateCount()` A utility method for quick retrieval of the first update count from the response.
    `boolean` | `isList()` Returns whether current iteration result is a list or an update count.
    `int` | `size()` Returns a number of results in the response.

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, iterator, spliterator`

- - ### Method Detail

    - #### 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

          List<T> 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.

Copyright © 2001–2018 Apache Cayenne. All rights reserved.