Class JpaSort.JpaOrder
java.lang.Object
org.springframework.data.domain.Sort.Order
org.springframework.data.jpa.domain.JpaSort.JpaOrder
- All Implemented Interfaces:
Serializable
- Enclosing class:
- JpaSort
Custom
Sort.Order
that keeps a flag to indicate unsafe property handling, i.e. the String provided is not
necessarily a property but can be an arbitrary expression piped into the query execution. We also keep an
additional ignoreCase
flag around as the constructor of the superclass is private currently.- Author:
- Christoph Strobl, Oliver Gierke
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isUnsafe()
with
(Sort.Direction order) with
(Sort.NullHandling nullHandling) withUnsafe
(String... properties) Creates newSort
with potentially unsafeSort.Order
instances.Methods inherited from class org.springframework.data.domain.Sort.Order
asc, by, desc, equals, getDirection, getNullHandling, getProperty, hashCode, isAscending, isDescending, nullsFirst, nullsLast, nullsNative, toString, withProperties, withProperty
-
Method Details
-
with
- Overrides:
with
in classSort.Order
-
with
- Overrides:
with
in classSort.Order
-
withUnsafe
Creates newSort
with potentially unsafeSort.Order
instances.- Parameters:
properties
- must not be null.- Returns:
-
ignoreCase
- Overrides:
ignoreCase
in classSort.Order
-
isIgnoreCase
public boolean isIgnoreCase()- Overrides:
isIgnoreCase
in classSort.Order
-
isUnsafe
public boolean isUnsafe()- Returns:
- true if
JpaSort.JpaOrder
createdwithUnsafe(String...)
.
-