Uses of Class
org.apache.cayenne.query.ColumnSelect
Package
Description
Cayenne data expression classes.
Property API
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
-
Uses of ColumnSelect in org.apache.cayenne.exp
Modifier and TypeMethodDescriptionstatic Expression
ExpressionFactory.inExp
(Expression exp, ColumnSelect<?> subQuery) static Expression
ExpressionFactory.notInExp
(Expression exp, ColumnSelect<?> subQuery) -
Uses of ColumnSelect in org.apache.cayenne.exp.property
Modifier and TypeMethodDescriptionBaseProperty.in
(ColumnSelect<? extends E> subquery) BaseProperty.nin
(ColumnSelect<? extends E> subquery) -
Uses of ColumnSelect in org.apache.cayenne.query
Modifier and TypeMethodDescriptionColumnSelect.and
(Collection<Expression> expressions) AND's provided expressions to the existing WHERE or HAVING clause expression.ColumnSelect.and
(Expression... expressions) AND's provided expressions to the existing WHERE clause expression.ColumnSelect.avg
(NumericProperty<?> property) Select average value of propertyDeprecated.<E extends Number>
ColumnSelect<E> ObjectSelect.avg
(NumericProperty<E> property) Select average value of property<E> ColumnSelect
<E> Deprecated.since 4.2 useObjectSelect.avg(NumericProperty)
ColumnSelect.cacheGroup
(String cacheGroup) ColumnSelect.cacheStrategy
(QueryCacheStrategy strategy) ColumnSelect.cacheStrategy
(QueryCacheStrategy strategy, String cacheGroup) protected <E> ColumnSelect
<E> <E> ColumnSelect
<E> Select one specific property.static ColumnSelect
<Object[]> ObjectSelect.columnQuery
(Class<?> entityType, Property<?>... columns) Creates a ColumnSelect that will fetch multiple columns of a givenObjEntity
static <E> ColumnSelect
<E> ObjectSelect.columnQuery
(Class<?> entityType, Property<E> column) Creates a ColumnSelect that will fetch single property that can be resolved against a givenObjEntity
class.ColumnSelect.columns
(Collection<Property<?>> properties) Add properties to select.Add properties to select.Select only specific properties.ColumnSelect.count()
Shortcut forcolumns(Property[])
columns}(Property.COUNT)ColumnSelect.count
(BaseProperty<?> property) Select COUNT(property)ObjectSelect.count()
Select COUNT(*)ObjectSelect.count
(BaseProperty<?> property) Select COUNT(property)ColumnSelect.dbEntityName
(String dbEntityName) Sets theDbEntity
name to fetch without changing the return type of the query.ColumnSelect.distinct()
Explicitly request distinct in query.ColumnSelect.entityName
(String entityName) Sets theObjEntity
name to fetch without changing the return type of the query.ColumnSelect.entityType
(Class<?> entityType) Sets the type of the entity to fetch without changing the return type of the query.Appends a having qualifier expression of this query, using provided expression String and an array of position parameters.ColumnSelect.having
(Expression expression) Appends a having qualifier expression of this query.ColumnSelect.limit
(int fetchLimit) Resets query fetch limit - a parameter that defines max number of objects that should be ever be fetched from the database.ColumnSelect.localCache()
Instructs Cayenne to look for query results in the "local" cache when running the query.ColumnSelect.localCache
(String cacheGroup) Instructs Cayenne to look for query results in the "local" cache when running the query.<E> ColumnSelect
<E> Maps result of this query by processing with a given function.ColumnSelect.max
(ComparableProperty<?> property) Select maximum value of property<E> ColumnSelect
<E> ObjectSelect.max
(ComparableProperty<E> property) Select maximum value of property<E extends Number>
ColumnSelect<E> ObjectSelect.max
(NumericProperty<E> property) Select maximum value of propertyColumnSelect.min
(ComparableProperty<?> property) Select minimum value of property<E> ColumnSelect
<E> ObjectSelect.min
(ComparableProperty<E> property) Select minimum value of property<E extends Number>
ColumnSelect<E> ObjectSelect.min
(NumericProperty<E> property) Select minimum value of propertyColumnSelect.offset
(int fetchOffset) Resets query fetch offset - a parameter that defines how many objects should be skipped when reading data from the database.ColumnSelect.or
(Collection<Expression> expressions) OR's provided expressions to the existing WHERE or HAVING clause expression.ColumnSelect.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.ColumnSelect.orderBy
(Collection<Ordering> orderings) Adds a list of orderings to this query.Add one or more orderings to this query.ColumnSelect.pageSize
(int pageSize) Resets query page size.Merges a prefetch path with specified semantics into the query prefetch tree.ColumnSelect.prefetch
(PrefetchTreeNode prefetch) Merges prefetch into the query prefetch tree.ColumnSelect.queryTimeout
(int timeout) Sets query timeout of PreparedStatement generated for this query.ColumnSelect.sharedCache()
Instructs Cayenne to look for query results in the "shared" cache when running the query.ColumnSelect.sharedCache
(String cacheGroup) Instructs Cayenne to look for query results in the "shared" cache when running the query.ColumnSelect.statementFetchSize
(int size) Sets fetch size of the PreparedStatement generated for this query.<E extends Number>
ColumnSelect<Object[]> ColumnSelect.sum
(NumericProperty<E> property) Select sum of values<E extends Number>
ColumnSelect<Object[]> Deprecated.since 4.2 usesum(NumericProperty)
<E extends Number>
ColumnSelect<E> ObjectSelect.sum
(NumericProperty<E> property) Select sum of values<E extends Number>
ColumnSelect<E> Deprecated.since 4.2 useObjectSelect.sum(NumericProperty)
ColumnSelect.suppressDistinct()
Explicitly suppress distinct in query.Appends a qualifier expression of this query, using provided expression String and an array of position parameters.ColumnSelect.where
(Expression expression) Appends a qualifier expression of this query.
avg(NumericProperty)