This is a convenience class which allows query result ordering
rules to be passed around the system before being applied to
a Query by calling SelectionQuery#setOrder.
A parameter of a HQL query method may be declared with type Order<? super E>,
List<Order<? super E>>, or Order<? super E>... (varargs)
where E is the entity type returned by the query.
SelectionQuery#setOrder(Order), SelectionQuery#setOrder(java.util.List)
| Modifier and Type | Field and Description |
|---|---|
| private final SingularAttribute | |
| private final String | |
| private final int | |
| private final Class | |
| private final NullPrecedence | |
| private final SortDirection |
| Access | Constructor and Description |
|---|---|
| private | |
| private | Order(SortDirection order, NullPrecedence nullPrecedence, Class<X> entityClass, String attributeName)
|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> Order | |
| public static <T> Order | |
| public static Order | |
| public static <T> Order | |
| public static <T> Order | |
| public static <T> Order | |
| public static <T> Order | by(Class<T> entityClass, String attributeName, SortDirection direction, NullPrecedence nullPrecedence)
|
| public static Order | |
| public static Order | |
| public static <T> Order | |
| public static <T> Order | |
| public static Order | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public SingularAttribute | |
| public String | |
| public SortDirection | |
| public int | |
| public Class | |
| public NullPrecedence | |
| public int | |
| public String |
| attribute | back to summary |
|---|---|
| private final SingularAttribute<X, ?> attribute | |
| attributeName | back to summary |
|---|---|
| private final String attributeName | |
| element | back to summary |
|---|---|
| private final int element | |
| entityClass | back to summary |
|---|---|
| private final Class<X> entityClass | |
| nullPrecedence | back to summary |
|---|---|
| private final NullPrecedence nullPrecedence | |
| order | back to summary |
|---|---|
| private final SortDirection order | |
| Order | back to summary |
|---|---|
| private Order(SortDirection order, NullPrecedence nullPrecedence, SingularAttribute<X, ?> attribute) | |
| Order | back to summary |
|---|---|
| private Order(SortDirection order, NullPrecedence nullPrecedence, Class<X> entityClass, String attributeName) | |
| Order | back to summary |
|---|---|
| private Order(SortDirection order, NullPrecedence nullPrecedence, int element) | |
| asc | back to summary |
|---|---|
| public static <T> Order | |
| asc | back to summary |
|---|---|
| public static <T> Order | |
| asc | back to summary |
|---|---|
| public static Order | |
| by | back to summary |
|---|---|
| public static <T> Order | |
| by | back to summary |
|---|---|
| public static <T> Order | |
| by | back to summary |
|---|---|
| public static <T> Order | |
| by | back to summary |
|---|---|
| public static <T> Order | |
| by | back to summary |
|---|---|
| public static Order | |
| by | back to summary |
|---|---|
| public static Order | |
| desc | back to summary |
|---|---|
| public static <T> Order | |
| desc | back to summary |
|---|---|
| public static <T> Order | |
| desc | back to summary |
|---|---|
| public static Order | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAttribute | back to summary |
|---|---|
| public SingularAttribute | |
| getAttributeName | back to summary |
|---|---|
| public String getAttributeName() | |
| getDirection | back to summary |
|---|---|
| public SortDirection getDirection() | |
| getElement | back to summary |
|---|---|
| public int getElement() | |
| getEntityClass | back to summary |
|---|---|
| public Class | |
| getNullPrecedence | back to summary |
|---|---|
| public NullPrecedence getNullPrecedence() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |