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 TypeMethodDescriptionint[]Returns batch update result in a form of array of individual update counts.Returns a list of selected objects.intReturns an update count.booleanReturns true if encapsulated result is a batch update result.booleanReturns 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.
 
-