public static class JpaSort.JpaOrder
extends org.springframework.data.domain.Sort.Order
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.| Modifier and Type | Method and Description |
|---|---|
JpaSort.JpaOrder |
ignoreCase() |
boolean |
isIgnoreCase() |
boolean |
isUnsafe() |
JpaSort.JpaOrder |
with(org.springframework.data.domain.Sort.Direction order) |
JpaSort.JpaOrder |
with(org.springframework.data.domain.Sort.NullHandling nullHandling) |
org.springframework.data.domain.Sort |
withUnsafe(String... properties)
Creates new
Sort with potentially unsafe Order instances. |
public JpaSort.JpaOrder with(org.springframework.data.domain.Sort.Direction order)
with in class org.springframework.data.domain.Sort.Orderpublic JpaSort.JpaOrder with(org.springframework.data.domain.Sort.NullHandling nullHandling)
with in class org.springframework.data.domain.Sort.Orderpublic org.springframework.data.domain.Sort withUnsafe(String... properties)
Sort with potentially unsafe Order instances.properties - must not be null.public JpaSort.JpaOrder ignoreCase()
ignoreCase in class org.springframework.data.domain.Sort.Orderpublic boolean isIgnoreCase()
isIgnoreCase in class org.springframework.data.domain.Sort.Orderpublic boolean isUnsafe()
JpaSort.JpaOrder created withUnsafe(String...).Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.