Package | Description |
---|---|
org.apache.cayenne.query |
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
|
Modifier and Type | Field and Description |
---|---|
protected List<Ordering> |
SelectQuery.orderings |
Modifier and Type | Method and Description |
---|---|
List<Ordering> |
SelectQuery.getOrderings()
Returns a list of orderings used by this query.
|
Modifier and Type | Method and Description |
---|---|
void |
SelectQuery.addOrdering(Ordering ordering)
Adds ordering specification to this query orderings.
|
void |
SelectQuery.removeOrdering(Ordering ordering)
Removes ordering.
|
Modifier and Type | Method and Description |
---|---|
void |
SelectQuery.addOrderings(List<Ordering> orderings)
Adds a list of orderings.
|
static void |
Ordering.orderList(List<?> objects,
List<Ordering> orderings)
Orders a given list of objects, using a List of Orderings applied according the
default iteration order of the Orderings list.
|
Constructor and Description |
---|
SelectQuery(Class<?> rootClass,
Expression qualifier,
List<Ordering> orderings)
Creates a SelectQuery that selects objects of a given persistent class that match
supplied qualifier.
|
SelectQuery(DbEntity root,
Expression qualifier,
List<Ordering> orderings)
Creates a SelectQuery for the specified DbEntity with the given qualifier and orderings.
|
SelectQuery(ObjEntity root,
Expression qualifier,
List<Ordering> orderings)
Creates a SelectQuery for the specified ObjEntity with the given
qualifier and orderings.
|
SelectQuery(String objEntityName,
Expression qualifier,
List<Ordering> orderings)
Creates a SelectQuery that selects objects of a given persistent class that match
supplied qualifier.
|
Copyright © 2001–2018 Apache Cayenne. All rights reserved.