- All Superinterfaces:
- Query
- All Known Implementing Classes:
- ProcedureQuery, SelectQuery, SqlSelectQuery
- public interface GenericSelectQuery
- extends Query
Interface that defines API of a generic SELECT query
from a DataContext perspective. It allows DataContext to
run different select queries that can be Cayenne based or use
raw SQL.
|
Method Summary |
int |
getFetchLimit()
|
int |
getPageSize()
Returns query page size. |
boolean |
isFetchingDataRows()
Returns true if this query
should produce a list of data rows as opposed
to DataObjects, false for DataObjects. |
isFetchingDataRows
public boolean isFetchingDataRows()
- Returns
true if this query
should produce a list of data rows as opposed
to DataObjects, false for DataObjects.
This is a hint to QueryEngine executing this query.
getPageSize
public int getPageSize()
- Returns query page size. Page size is a hint
to Cayenne that query should be performed page by
page, instead of retrieveing all results at once.
If the value returned is less than or equal to zero,
no paging should occur.
getFetchLimit
public int getFetchLimit()