Package | Description |
---|---|
org.apache.cayenne.query |
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
|
Modifier and Type | Method and Description |
---|---|
ColumnSelect<T> |
ColumnSelect.and(Collection<Expression> expressions)
AND's provided expressions to the existing WHERE or HAVING clause expression.
|
ColumnSelect<Object[]> |
ColumnSelect.avg(Property<?> property)
Select average value of property
|
<E> ColumnSelect<E> |
ObjectSelect.avg(Property<E> property)
Select average value of property
|
protected <E> ColumnSelect<E> |
ColumnSelect.column(Property<E> property) |
<E> ColumnSelect<E> |
ObjectSelect.column(Property<E> property)
Select one specific property.
|
protected static ColumnSelect<Object[]> |
ObjectSelect.columnQuery(Class<?> entityType,
Property<?> firstColumn,
Property<?>... otherColumns)
Creates a ColumnSelect that will fetch multiple columns of a given
ObjEntity |
protected 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 given
ObjEntity class. |
ColumnSelect<Object[]> |
ColumnSelect.columns(Collection<Property<?>> properties)
Add properties to select.
|
ColumnSelect<Object[]> |
ColumnSelect.columns(Property<?> firstProperty,
Property<?>... otherProperties)
Add properties to select.
|
ColumnSelect<Object[]> |
ObjectSelect.columns(Property<?> firstProperty,
Property<?>... properties)
Select only specific properties.
|
ColumnSelect<Object[]> |
ColumnSelect.count()
Shortcut for
columns(Property, Property[]) columns}(Property.COUNT) |
ColumnSelect<Long> |
ObjectSelect.count()
Select COUNT(*)
|
ColumnSelect<Object[]> |
ColumnSelect.count(Property<?> property)
Select COUNT(property)
|
ColumnSelect<Long> |
ObjectSelect.count(Property<?> property)
Select COUNT(property)
|
ColumnSelect<T> |
ColumnSelect.having(Expression expression)
Appends a having qualifier expression of this query.
|
ColumnSelect<T> |
ColumnSelect.having(String expressionString,
Object... parameters)
Appends a having qualifier expression of this query, using provided expression
String and an array of position parameters.
|
ColumnSelect<Object[]> |
ColumnSelect.max(Property<?> property)
Select maximum value of property
|
<E> ColumnSelect<E> |
ObjectSelect.max(Property<E> property)
Select maximum value of property
|
ColumnSelect<Object[]> |
ColumnSelect.min(Property<?> property)
Select minimum value of property
|
<E> ColumnSelect<E> |
ObjectSelect.min(Property<E> property)
Select minimum value of property
|
ColumnSelect<T> |
ColumnSelect.or(Collection<Expression> expressions)
OR's provided expressions to the existing WHERE or HAVING clause expression.
|
<E extends Number> |
ColumnSelect.sum(Property<E> property)
Select sum of values
|
<E extends Number> |
ObjectSelect.sum(Property<E> property)
Select sum of values
|
Copyright © 2001–2017 Apache Cayenne. All rights reserved.