Uses of Class
org.apache.cayenne.query.ObjectSelect
Package
Description
Contains O/R mapping classes that store relational database
metadata information and map it to Java classes.
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
-
Uses of ObjectSelect in org.apache.cayenne.map
-
Uses of ObjectSelect in org.apache.cayenne.query
Modifier and TypeClassDescriptionclass
A SelectQuery to perform a prefetch based on another query.Modifier and TypeMethodDescriptionObjectSelect.and
(Collection<Expression> expressions) AND's provided expressions to the existing WHERE clause expression.ObjectSelect.and
(Expression... expressions) AND's provided expressions to the existing WHERE clause expression.ObjectSelect.cacheGroup
(String cacheGroup) ObjectSelect.cacheStrategy
(QueryCacheStrategy strategy) ObjectSelect.cacheStrategy
(QueryCacheStrategy strategy, String cacheGroup) static ObjectSelect
<DataRow> ObjectSelect.dataRowQuery
(Class<?> entityType) Creates a ObjectSelect that fetches data for anObjEntity
determined from a provided class.static ObjectSelect
<DataRow> ObjectSelect.dataRowQuery
(Class<?> entityType, Expression expression) Creates a ObjectSelect that fetches data for anObjEntity
determined from a provided class and uses provided expression for its qualifier.ObjectSelect.dbEntityName
(String dbEntityName) Sets theDbEntity
name to fetch without changing the return type of the query.static ObjectSelect
<DataRow> Creates a ObjectSelect that fetches DataRows for aDbEntity
determined from provided "dbEntityName".static ObjectSelect
<DataRow> ObjectSelect.dbQuery
(String dbEntityName, Expression expression) Creates a ObjectSelect that fetches DataRows for aDbEntity
determined from provided "dbEntityName" and uses provided expression for its qualifier.ObjectSelect.distinct()
ObjectSelect.entityName
(String entityName) Sets theObjEntity
name to fetch without changing the return type of the query.ObjectSelect.entityType
(Class<?> entityType) Sets the type of the entity to fetch without changing the return type of the query.ObjectSelect.fetchDataRows()
Forces query to fetch DataRows.Appends a having qualifier expression of this query, using provided expression String and an array of position parameters.ObjectSelect.having
(Expression expression) Appends a having qualifier expression of this query.ObjectSelect.limit
(int fetchLimit) Resets query fetch limit - a parameter that defines max number of objects that should be ever be fetched from the database.ObjectSelect.localCache()
Instructs Cayenne to look for query results in the "local" cache when running the query.ObjectSelect.localCache
(String cacheGroup) Instructs Cayenne to look for query results in the "local" cache when running the query.ObjectSelect.offset
(int fetchOffset) Resets query fetch offset - a parameter that defines how many objects should be skipped when reading data from the database.ObjectSelect.or
(Collection<Expression> expressions) OR's provided expressions to the existing WHERE clause expression.ObjectSelect.or
(Expression... expressions) OR's provided expressions to the existing WHERE clause expression.Add an ascending ordering on the given property.Add an ordering on the given property.ObjectSelect.orderBy
(Collection<Ordering> orderings) Adds a list of orderings to this query.Add one or more orderings to this query.ObjectSelect.pageSize
(int pageSize) Resets query page size.Merges a prefetch path with specified semantics into the query prefetch tree.ObjectSelect.prefetch
(PrefetchTreeNode prefetch) Merges prefetch into the query prefetch tree.static <T> ObjectSelect
<T> Creates a ObjectSelect that selects objects of a given persistent class.static <T> ObjectSelect
<T> Creates a ObjectSelect that fetches data forObjEntity
determined from provided "entityName", but fetches the result of a provided type.static <T> ObjectSelect
<T> ObjectSelect.query
(Class<T> entityType, Expression expression) Creates a ObjectSelect that selects objects of a given persistent class and uses provided expression for its qualifier.static <T> ObjectSelect
<T> ObjectSelect.query
(Class<T> entityType, Expression expression, List<Ordering> orderings) Creates a ObjectSelect that selects objects of a given persistent class and uses provided expression for its qualifier.ObjectSelect.queryTimeout
(int timeout) Sets query timeout for PreparedStatement generated for this query.ObjectSelect.sharedCache()
Instructs Cayenne to look for query results in the "shared" cache when running the query.ObjectSelect.sharedCache
(String cacheGroup) Instructs Cayenne to look for query results in the "shared" cache when running the query.ObjectSelect.statementFetchSize
(int size) Sets fetch size of the PreparedStatement generated for this query.Appends a qualifier expression of this query, using provided expression String and an array of position parameters.ObjectSelect.where
(Expression expression) Appends a qualifier expression of this query.ModifierConstructorDescriptionprotected
ColumnSelect
(ObjectSelect<T> select) Copy constructor to convert ObjectSelect to ColumnSelect