Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.query
Interface GenericSelectQuery  view GenericSelectQuery download GenericSelectQuery.java

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.


Field Summary
 
Fields inherited from interface org.objectstyle.cayenne.query.Query
DEFAULT_LOG_LEVEL, DELETE_QUERY, INSERT_QUERY, SELECT_QUERY, UNKNOWN_QUERY, UPDATE_QUERY
 
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.
 
Methods inherited from interface org.objectstyle.cayenne.query.Query
getLoggingLevel, getQueryType, getRoot, setLoggingLevel, setRoot
 

Method Detail

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()