# Uses of Class
org.apache.cayenne.query.MappedSelect

Packages that use MappedSelect
Package
Description
org.apache.cayenne.query
Defines standard queries supported by Cayenne and extension mechanism to create custom queries.

- ## Uses of MappedSelect in org.apache.cayenne.query

  Methods in org.apache.cayenne.query that return MappedSelect
  Modifier and Type
  Method
  Description
  `MappedSelect<T>`
  MappedSelect.`forceNoCache()`
  Forces query cache to be refreshed during the execution of this query.
  `MappedSelect<T>`
  MappedSelect.`limit(int fetchLimit)`
  Resets query fetch limit - a parameter that defines max number of objects that should be ever be fetched from the database.
  `MappedSelect<T>`
  MappedSelect.`offset(int fetchOffset)`
  Resets query fetch offset - a parameter that defines how many objects should be skipped when reading data from the database.
  `MappedSelect<T>`
  MappedSelect.`pageSize(int pageSize)`
  Resets query page size.
  `MappedSelect<T>`
  MappedSelect.`param(String name, Object value)`
  `MappedSelect<T>`
  MappedSelect.`params(Map<String,?> parameters)`
  `static MappedSelect<?>`
  MappedSelect.`query(String queryName)`
  Loads query with the given name from the mapping configuration.
  `static <T> MappedSelect<T>`
  MappedSelect.`query(String queryName, Class<T> rootClass)`
  Loads query with the given name, which selects objects of a given persistent class, from the mapping configuration.
  `MappedSelect<T>`
  MappedSelect.`queryTimeout(int timeout)`
  Sets query timeout for the PreparedStatement generated for this query.
  `MappedSelect<T>`
  MappedSelect.`statementFetchSize(int statementFetchSize)`
  Sets fetch size of the PreparedStatement generated for this query.