org.alfresco.query
Class CannedQuerySortDetails

java.lang.Object
  extended by org.alfresco.query.CannedQuerySortDetails

public class CannedQuerySortDetails
extends java.lang.Object

Details for canned queries supporting sorted results

Since:
4.0

Nested Class Summary
static class CannedQuerySortDetails.SortOrder
          Sort ordering for the sort pairs.
 
Constructor Summary
CannedQuerySortDetails(java.util.List sortPairs)
          Construct the sort details from a list of sort pairs.
CannedQuerySortDetails(Pair[] sortPairs)
          Construct the sort details with a variable number of sort pairs.
 
Method Summary
 java.util.List getSortPairs()
          Get the sort definitions.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CannedQuerySortDetails

public CannedQuerySortDetails(Pair[] sortPairs)
Construct the sort details with a variable number of sort pairs.

Sorting is done by:
key: the key type to sort on
sortOrder: the ordering of values associated with the key

Parameters:
sortPairs - the sort pairs, which will be applied in order

CannedQuerySortDetails

public CannedQuerySortDetails(java.util.List sortPairs)
Construct the sort details from a list of sort pairs.

Sorting is done by:
key: the key type to sort on
sortOrder: the ordering of values associated with the key

Parameters:
sortPairs - the sort pairs, which will be applied in order
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSortPairs

public java.util.List getSortPairs()
Get the sort definitions. The instance will become unmodifiable after this has been called.



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.