public class JpaSort extends Sort
Attributes for sorting.| Modifier and Type | Class and Description |
|---|---|
static class |
JpaSort.Path<T,S>
Value object to abstract a collection of
Attributes. |
Sort.Direction, Sort.NullHandling, Sort.OrderDEFAULT_DIRECTION| Constructor and Description |
|---|
JpaSort(javax.persistence.metamodel.Attribute<?,?>... attributes)
Creates a new
JpaSort for the given attributes with the default sort direction. |
JpaSort(JpaSort.Path<?,?>... paths)
Creates a new
JpaSort instance with the given JpaSort.Paths. |
JpaSort(Sort.Direction direction,
javax.persistence.metamodel.Attribute<?,?>... attributes)
Creates a new
JpaSort for the given direction and attributes. |
JpaSort(Sort.Direction direction,
JpaSort.Path<?,?>... paths)
Creates a new
JpaSort for the given direction and JpaSort.Paths. |
| Modifier and Type | Method and Description |
|---|---|
static <T,S> JpaSort.Path<T,S> |
path(javax.persistence.metamodel.Attribute<T,S> attribute)
Creates a new
JpaSort.Path for the given Attribute. |
static <T,S> JpaSort.Path<T,S> |
path(javax.persistence.metamodel.PluralAttribute<T,?,S> attribute)
Creates a new
JpaSort.Path for the given PluralAttribute. |
and, equals, getOrderFor, hashCode, iterator, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic JpaSort(javax.persistence.metamodel.Attribute<?,?>... attributes)
JpaSort for the given attributes with the default sort direction.attributes - must not be null or empty.public JpaSort(JpaSort.Path<?,?>... paths)
JpaSort instance with the given JpaSort.Paths.paths - must not be null or empty.public JpaSort(Sort.Direction direction, javax.persistence.metamodel.Attribute<?,?>... attributes)
JpaSort for the given direction and attributes.direction - the sorting direction.attributes - must not be null or empty.public JpaSort(Sort.Direction direction, JpaSort.Path<?,?>... paths)
JpaSort for the given direction and JpaSort.Paths.direction - the sorting direction.paths - must not be null or empty.public static <T,S> JpaSort.Path<T,S> path(javax.persistence.metamodel.Attribute<T,S> attribute)
JpaSort.Path for the given Attribute.attribute - must not be null.public static <T,S> JpaSort.Path<T,S> path(javax.persistence.metamodel.PluralAttribute<T,?,S> attribute)
JpaSort.Path for the given PluralAttribute.attribute - must not be null.Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.