Uses of Class
org.springframework.data.jpa.domain.JpaSort
Package
Description
JPA specific support classes to implement domain classes.
-
Uses of JpaSort in org.springframework.data.jpa.domain
Modifier and TypeMethodDescriptionJpaSort.and
(Sort.Direction direction, jakarta.persistence.metamodel.Attribute<?, ?>... attributes) Returns a newJpaSort
with the given sorting criteria added to the current one.JpaSort.and
(Sort.Direction direction, JpaSort.Path<?, ?>... paths) Returns a newJpaSort
with the given sorting criteria added to the current one.JpaSort.andUnsafe
(Sort.Direction direction, String... properties) Returns a newJpaSort
with the given sorting criteria added to the current one.static JpaSort
JpaSort.of
(jakarta.persistence.metamodel.Attribute<?, ?>... attributes) Creates a newJpaSort
for the given attributes with the default sort direction.static JpaSort
JpaSort.of
(Sort.Direction direction, jakarta.persistence.metamodel.Attribute<?, ?>... attributes) Creates a newJpaSort
for the given direction and attributes.static JpaSort
JpaSort.of
(Sort.Direction direction, JpaSort.Path<?, ?>... paths) Creates a newJpaSort
for the given direction andJpaSort.Path
s.static JpaSort
JpaSort.of
(JpaSort.Path<?, ?>... paths) Creates a newJpaSort
instance with the givenJpaSort.Path
s.static JpaSort
Creates new unsafeJpaSort
based on given properties.static JpaSort
JpaSort.unsafe
(Sort.Direction direction, String... properties) Creates new unsafeJpaSort
based on givenSort.Direction
and properties.static JpaSort
JpaSort.unsafe
(Sort.Direction direction, List<String> properties) Creates new unsafeJpaSort
based on givenSort.Direction
and properties.