com.bmc.cmdb.api
Class CMDBSort

java.lang.Object
  extended by com.bmc.cmdb.api.CMDBSort

public class CMDBSort
extends java.lang.Object

The CMDBSort class defines the sort property of returned instances.


Field Summary
static int CMDB_SORT_ASCENDING
          The sort order is ascending.
static int CMDB_SORT_DESCENDING
          The sort order is descending.
 
Constructor Summary
CMDBSort(java.lang.String attributeName, int sortOrder)
          Constructor that creates a sort object that sorts on the specified attribute with the provided order.
 
Method Summary
 java.lang.String getAttributeName()
          Gets the attribute name.
 int getSortOrder()
          Gets the sort order.
 void setAttributeName(java.lang.String attributeName)
          Sets the attribute name.
 void setSortOrder(int sortOrder)
          Sets the sort order.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMDB_SORT_ASCENDING

public static final int CMDB_SORT_ASCENDING
The sort order is ascending.

See Also:
Constant Field Values

CMDB_SORT_DESCENDING

public static final int CMDB_SORT_DESCENDING
The sort order is descending.

See Also:
Constant Field Values
Constructor Detail

CMDBSort

public CMDBSort(java.lang.String attributeName,
                int sortOrder)
Constructor that creates a sort object that sorts on the specified attribute with the provided order.

Parameters:
attributeName - the attribute name to sort on
sortOrder - The sort order of the attribute. It can be CMDB_SORT_ASCENDING or CMDB_SORT_DESCENDING.
Method Detail

getAttributeName

public java.lang.String getAttributeName()
Gets the attribute name.

Returns:
the attribute name

getSortOrder

public int getSortOrder()
Gets the sort order.

Returns:
the sort order, which can be CMDB_SORT_ASCENDING or CMDB_SORT_DESCENDING

setAttributeName

public void setAttributeName(java.lang.String attributeName)
Sets the attribute name.

Parameters:
attributeName - the attribute name to be set

setSortOrder

public void setSortOrder(int sortOrder)
Sets the sort order.

Parameters:
sortOrder - the sort order to be set


(c) Copyright 2004-2007 BMC Software, Inc.