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 TypeMethodDescriptionbooleanbooleanisUnsafe()with(Sort.Direction order) with(Sort.NullHandling nullHandling) withUnsafe(String... properties) Creates newSortwith potentially unsafeSort.Orderinstances.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:
within classSort.Order
-
with
- Overrides:
within classSort.Order
-
withUnsafe
Creates newSortwith potentially unsafeSort.Orderinstances.- Parameters:
properties- must not be null.- Returns:
-
ignoreCase
- Overrides:
ignoreCasein classSort.Order
-
isIgnoreCase
public boolean isIgnoreCase()- Overrides:
isIgnoreCasein classSort.Order
-
isUnsafe
public boolean isUnsafe()- Returns:
- true if
JpaSort.JpaOrdercreatedwithUnsafe(String...).
-