org.springframework.data.querydsl
Class QSort
java.lang.Object
org.springframework.data.domain.Sort
org.springframework.data.querydsl.QSort
- All Implemented Interfaces:
- Serializable, Iterable<Sort.Order>
public class QSort
- extends Sort
- implements Serializable
Sort option for queries that wraps a querydsl OrderSpecifier.
- Author:
- Thomas Darimont
- See Also:
- Serialized Form
|
Constructor Summary |
QSort(List<com.mysema.query.types.OrderSpecifier<?>> orderSpecifiers)
Creates a new QSort instance with the given OrderSpecifiers. |
QSort(com.mysema.query.types.OrderSpecifier<?>... orderSpecifiers)
Creates a new QSort instance with the given OrderSpecifiers. |
|
Method Summary |
QSort |
and(List<com.mysema.query.types.OrderSpecifier<?>> orderSpecifiers)
Returns a new QSort consisting of the OrderSpecifiers of the current QSort combined with
the given ones. |
QSort |
and(com.mysema.query.types.OrderSpecifier<?>... orderSpecifiers)
Returns a new QSort consisting of the OrderSpecifiers of the current QSort combined with
the given ones. |
QSort |
and(QSort sort)
Returns a new QSort consisting of the OrderSpecifiers of the current QSort combined with
the ones from the given QSort. |
List<com.mysema.query.types.OrderSpecifier<?>> |
getOrderSpecifiers()
|
QSort
public QSort(com.mysema.query.types.OrderSpecifier<?>... orderSpecifiers)
- Creates a new
QSort instance with the given OrderSpecifiers.
- Parameters:
orderSpecifiers - must not be null or empty;
QSort
public QSort(List<com.mysema.query.types.OrderSpecifier<?>> orderSpecifiers)
- Creates a new
QSort instance with the given OrderSpecifiers.
- Parameters:
orderSpecifiers - must not be null or empty;
getOrderSpecifiers
public List<com.mysema.query.types.OrderSpecifier<?>> getOrderSpecifiers()
- Returns:
- the orderSpecifier
and
public QSort and(QSort sort)
- Returns a new
QSort consisting of the OrderSpecifiers of the current QSort combined with
the ones from the given QSort.
- Parameters:
sort - can be null.
- Returns:
and
public QSort and(List<com.mysema.query.types.OrderSpecifier<?>> orderSpecifiers)
- Returns a new
QSort consisting of the OrderSpecifiers of the current QSort combined with
the given ones.
- Parameters:
orderSpecifiers - must not be null or empty.
- Returns:
and
public QSort and(com.mysema.query.types.OrderSpecifier<?>... orderSpecifiers)
- Returns a new
QSort consisting of the OrderSpecifiers of the current QSort combined with
the given ones.
- Parameters:
orderSpecifiers - must not be null or empty.
- Returns:
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.