com.sap.mdm.data
Class SortField

java.lang.Object
  extended bycom.sap.mdm.data.SortField

public class SortField
extends Object

Defines the field to sort by and the sort order.

Since:
7.1 SP08

Constructor Summary
SortField(FieldId[] fieldPath, boolean isAscending)
          Specifies the path of the tuple field to sort by and the sort order., Only one level of tuple nesting is supported, so that the field path array cannot include more than two field IDs.
SortField(FieldId fieldId, boolean isAscending)
          Specifies the field to sort by and the sort order.
 
Method Summary
 boolean equals(Object obj)
           
 FieldId[] getFieldPath()
          Returns the path of the field to sort by.
 int hashCode()
           
 boolean isSortAscending()
          Indicates whether the sort order is ascending.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortField

public SortField(FieldId fieldId,
                 boolean isAscending)
Specifies the field to sort by and the sort order.

Parameters:
fieldId - the ID of the field to sort by
isAscending - the sorting order

SortField

public SortField(FieldId[] fieldPath,
                 boolean isAscending)
Specifies the path of the tuple field to sort by and the sort order., Only one level of tuple nesting is supported, so that the field path array cannot include more than two field IDs.

The following behavior applies to record sorting based on tuple values:

Parameters:
fieldPath - the path of the field to sort by
isAscending - the sort order
Method Detail

getFieldPath

public FieldId[] getFieldPath()
Returns the path of the field to sort by.

Returns:
The field path

isSortAscending

public boolean isSortAscending()
Indicates whether the sort order is ascending.

Returns:
True if the sort order is ascending, false if descending.

hashCode

public int hashCode()

equals

public boolean equals(Object obj)


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.