Package org.apache.cayenne
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 SummaryModifier 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.intgetUpdateCount()Returns an update count.booleanisBatchUpdate()Returns true if encapsulated result is a batch update result.booleanisSelectResult()Returns true if encapsulated result is a select result.
- 
Method Details- 
isSelectResultboolean isSelectResult()Returns true if encapsulated result is a select result.
- 
isBatchUpdateboolean isBatchUpdate()Returns true if encapsulated result is a batch update result.
- 
getSelectResultReturns a list of selected objects. Throws unlessisSelectResult()returns true.
- 
getUpdateCountint getUpdateCount()Returns an update count.
- 
getBatchUpdateCountsint[] getBatchUpdateCounts()Returns batch update result in a form of array of individual update counts.
 
-