QueryResultItem (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne, interface: QueryResultItem

# Interface QueryResultItem<T>

public interface QueryResultItem<T>
Represents a single item in a multipart query execution. Can be either an update count or a list of objects.

Since:
  4.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int[]`
  `getBatchUpdateCounts()`
  Returns batch update result in a form of array of individual update counts.
  `List<T>`
  `getSelectResult()`
  Returns a list of selected objects.
  `int`
  `getUpdateCount()`
  Returns an update count.
  `boolean`
  `isBatchUpdate()`
  Returns true if encapsulated result is a batch update result.
  `boolean`
  `isSelectResult()`
  Returns true if encapsulated result is a select result.

- ## Method Details

  - ### isSelectResult

    boolean isSelectResult()
    Returns true if encapsulated result is a select result.

  - ### isBatchUpdate

    boolean isBatchUpdate()
    Returns true if encapsulated result is a batch update result.

  - ### getSelectResult

    List<T> getSelectResult()
    Returns a list of selected objects. Throws unless `isSelectResult()` returns true.

  - ### getUpdateCount

    int getUpdateCount()
    Returns an update count.

  - ### getBatchUpdateCounts

    int[] getBatchUpdateCounts()
    Returns batch update result in a form of array of individual update counts.