Spring Data Core

org.springframework.data.querydsl
Class QSort

java.lang.Object
  extended by org.springframework.data.domain.Sort
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.data.domain.Sort
Sort.Direction, Sort.NullHandling, Sort.Order
 
Field Summary
 
Fields inherited from class org.springframework.data.domain.Sort
DEFAULT_DIRECTION
 
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()
           
 
Methods inherited from class org.springframework.data.domain.Sort
and, equals, getOrderFor, hashCode, iterator, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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;
Method Detail

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:

Spring Data Core

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.