|
Spring Data JPA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.domain.Sort
org.springframework.data.jpa.domain.JpaSort
public class JpaSort
Sort option for queries that wraps JPA meta-model Attributes for sorting.
| Nested Class Summary | |
|---|---|
static class |
JpaSort.Path<T,S>
Value object to abstract a collection of Attributes. |
| Nested classes/interfaces inherited from class org.springframework.data.domain.Sort |
|---|
Sort.Direction, Sort.NullHandling, Sort.Order |
| Field Summary |
|---|
| Fields inherited from class org.springframework.data.domain.Sort |
|---|
DEFAULT_DIRECTION |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | ||
|---|---|---|
static
|
path(javax.persistence.metamodel.Attribute<T,S> attribute)
Creates a new JpaSort.Path for the given Attribute. |
|
static
|
path(javax.persistence.metamodel.PluralAttribute<T,?,S> attribute)
Creates a new JpaSort.Path for the given PluralAttribute. |
|
| Methods inherited from class org.springframework.data.domain.Sort |
|---|
and, equals, getOrderFor, hashCode, iterator, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
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.
|
Spring Data JPA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||