com.adobe.repository.query.sort
Class SortOrder.Element

java.lang.Object
  extended by com.adobe.repository.query.sort.SortOrder.Element
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
SortOrder

public static class SortOrder.Element
extends java.lang.Object
implements java.io.Serializable

An element of an ORDER BY clause, indicating one column to be sorted as well as its direction (ascending or descending) .

Since:
8.0
See Also:
Serialized Form

Constructor Summary
SortOrder.Element(int infomodelConstant, boolean ascending)
          A constructor that creates a new SortOrder.Element instance based on the specified ResourceProperty constant.
SortOrder.Element(java.lang.String column, boolean ascending)
          A constructor that creates a new SortOrder.Element instance.
SortOrder.Element(java.lang.String column, java.lang.String namespace, boolean ascending)
          A constructor that creates a new SortOrder.Element instance based on the specified column, namespace, and direction.
 
Method Summary
 java.lang.String getColumn()
          Retrieves the column.
 java.lang.String getNamespace()
          Retrieves the namespace.
 boolean isAscending()
          Retrieves the sort direction.
 void setNamespace(java.lang.String namespace)
          Sets the namespace.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortOrder.Element

public SortOrder.Element(java.lang.String column,
                         boolean ascending)
A constructor that creates a new SortOrder.Element instance.

Parameters:
column - The name of the column by which to sort.
ascending - true if ascending sort order is used, false if descending sort order is used.

SortOrder.Element

public SortOrder.Element(int infomodelConstant,
                         boolean ascending)
A constructor that creates a new SortOrder.Element instance based on the specified ResourceProperty constant.

Parameters:
infomodelConstant - The name of the column by which to sort.
ascending - true if ascending sort order is used, false if descending sort order is used.

SortOrder.Element

public SortOrder.Element(java.lang.String column,
                         java.lang.String namespace,
                         boolean ascending)
A constructor that creates a new SortOrder.Element instance based on the specified column, namespace, and direction.

Parameters:
column - The name of the column by which to sort.
namespace - The namespace to be used.
ascending - true if ascending sort order is used, false if descending sort order is used.
Method Detail

setNamespace

public void setNamespace(java.lang.String namespace)
Sets the namespace.

Parameters:
namespace - The namespace to be used.

getNamespace

public java.lang.String getNamespace()
Retrieves the namespace.

Returns:
The namespace.

isAscending

public boolean isAscending()
Retrieves the sort direction.

Returns:
true if ascending sort order is used, false if descending sort order is used.

getColumn

public java.lang.String getColumn()
Retrieves the column.

Returns:
The column.


[an error occurred while processing this directive] [an error occurred while processing this directive]