Package | Description |
---|---|
org.springframework.data.domain |
Central domain abstractions especially to be used in combination with the
Repository abstraction. |
Modifier and Type | Field and Description |
---|---|
static Sort.Direction |
Sort.DEFAULT_DIRECTION |
Modifier and Type | Method and Description |
---|---|
static Sort.Direction |
Sort.Direction.fromString(String value)
Returns the
Sort.Direction enum for the given String value. |
static Sort.Direction |
Sort.Direction.fromStringOrNull(String value)
Returns the
Sort.Direction enum for the given String or null if it cannot be parsed into an enum
value. |
Sort.Direction |
Sort.Order.getDirection()
Returns the order the property shall be sorted for.
|
static Sort.Direction |
Sort.Direction.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Sort.Direction[] |
Sort.Direction.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Sort.Order |
Sort.Order.with(Sort.Direction order)
Returns a new
Sort.Order with the given Sort.Order . |
Constructor and Description |
---|
Order(Sort.Direction direction,
String property)
Creates a new
Sort.Order instance. if order is null then order defaults to
Sort.DEFAULT_DIRECTION |
Order(Sort.Direction direction,
String property,
Sort.NullHandling nullHandlingHint)
Creates a new
Sort.Order instance. if order is null then order defaults to
Sort.DEFAULT_DIRECTION |
PageRequest(int page,
int size,
Sort.Direction direction,
String... properties)
Creates a new
PageRequest with sort parameters applied. |
Sort(Sort.Direction direction,
List<String> properties)
Creates a new
Sort instance. |
Sort(Sort.Direction direction,
String... properties)
Creates a new
Sort instance. |
Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.