Package | Description |
---|---|
org.apache.cayenne.exp |
Cayenne data expression classes.
|
org.apache.cayenne.map |
Contains O/R mapping classes that store relational database
metadata information and map it to Java classes.
|
org.apache.cayenne.query |
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
|
Modifier and Type | Method and Description |
---|---|
Ordering |
Property.asc() |
Ordering |
Property.ascInsensitive() |
Ordering |
Property.desc() |
Ordering |
Property.descInsensitive() |
Modifier and Type | Method and Description |
---|---|
List<Ordering> |
Property.ascInsensitives() |
List<Ordering> |
Property.ascs() |
List<Ordering> |
Property.descInsensitives() |
List<Ordering> |
Property.descs() |
Modifier and Type | Field and Description |
---|---|
protected List<Ordering> |
QueryDescriptorLoader.orderings |
protected List<Ordering> |
SelectQueryDescriptor.orderings |
Modifier and Type | Method and Description |
---|---|
List<Ordering> |
SelectQueryDescriptor.getOrderings()
Returns list of orderings for this query.
|
Modifier and Type | Method and Description |
---|---|
void |
SelectQueryDescriptor.addOrdering(Ordering ordering)
Adds single ordering for this query.
|
void |
SelectQueryDescriptor.removeOrdering(Ordering ordering)
Removes single ordering from this query.
|
Modifier and Type | Method and Description |
---|---|
void |
SelectQueryDescriptor.setOrderings(List<Ordering> orderings)
Sets list of orderings for this query.
|
Modifier and Type | Field and Description |
---|---|
protected List<Ordering> |
SelectQuery.orderings |
protected Collection<Ordering> |
FluentSelect.orderings |
Modifier and Type | Method and Description |
---|---|
List<Ordering> |
SelectQuery.getOrderings()
Returns a list of orderings used by this query.
|
Collection<Ordering> |
FluentSelect.getOrderings() |
Modifier and Type | Method and Description |
---|---|
void |
SelectQuery.addOrdering(Ordering ordering)
Adds ordering specification to this query orderings.
|
ObjectSelect<T> |
ObjectSelect.orderBy(Ordering... orderings)
Add one or more orderings to this query.
|
ColumnSelect<T> |
ColumnSelect.orderBy(Ordering... orderings)
Add one or more orderings to this query.
|
void |
SelectQuery.removeOrdering(Ordering ordering)
Removes ordering.
|
Modifier and Type | Method and Description |
---|---|
void |
SelectQuery.addOrderings(Collection<? extends Ordering> orderings)
Adds a list of orderings.
|
static SelectQuery<DataRow> |
SelectQuery.dataRowQuery(Class<?> rootClass,
Expression qualifier,
List<Ordering> orderings) |
ObjectSelect<T> |
ObjectSelect.orderBy(Collection<Ordering> orderings)
Adds a list of orderings to this query.
|
ColumnSelect<T> |
ColumnSelect.orderBy(Collection<Ordering> orderings)
Adds a list of orderings to this query.
|
static <E> List<E> |
Ordering.orderedList(Collection<E> objects,
List<? extends Ordering> orderings)
Orders a given list of objects, using a List of Orderings applied
according the default iteration order of the Orderings list.
|
static void |
Ordering.orderList(List<?> objects,
List<? extends Ordering> orderings)
Orders a given list of objects, using a List of Orderings applied
according the default iteration order of the Orderings list.
|
static <T> SelectQuery<T> |
SelectQuery.query(Class<T> rootClass,
Expression qualifier,
List<? extends Ordering> orderings)
Creates a SelectQuery that selects objects of a given persistent class
that match supplied 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.
|
Constructor and Description |
---|
SelectQuery(Class<T> rootClass,
Expression qualifier,
List<? extends Ordering> orderings)
Creates a SelectQuery that selects objects of a given persistent class
that match supplied qualifier.
|
SelectQuery(DbEntity root,
Expression qualifier,
List<? extends Ordering> orderings)
Creates a SelectQuery for the specified DbEntity with the given qualifier
and orderings.
|
SelectQuery(ObjEntity root,
Expression qualifier,
List<? extends Ordering> orderings)
Creates a SelectQuery for the specified ObjEntity with the given
qualifier and orderings.
|
SelectQuery(String objEntityName,
Expression qualifier,
List<? extends Ordering> orderings)
Creates a SelectQuery that selects objects of a given persistent class
that match supplied qualifier.
|
Copyright © 2001–2019 Apache Cayenne. All rights reserved.