public class SortInfo extends Object implements Cloneable, Serializable
SortInfo
class specifies the sort order of fields
from an entry list. It consists of two elements, a field ID and a sort order.Modifier and Type | Field and Description |
---|---|
int |
m_fldID
The
InternalID associated with the field to sort on. |
int |
m_order
An integer value indicating the sort order for the field
(1 - ascending, 2 - descending).
|
Constructor and Description |
---|
SortInfo() |
SortInfo(int id,
int order)
Constructs a new
SortInfo object. |
SortInfo(int id,
IQuerySource source,
int order)
Constructs a new
SortInfo object used by dynamic queries. |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Makes a copy of the object.
|
boolean |
equals(Object obj)
Use this method for checking equality.
|
int |
getFieldID()
Returns the fieldID to sort on.
|
int |
getSortOrder()
Returns the sort order to be applied on the field.
|
IQuerySource |
getSource()
Returns the
IQuerySource form or query containing the field to sort on |
int |
hashCode()
Returns the hash code value for this instance of the current class.
|
String |
toString() |
public int m_fldID
InternalID
associated with the field to sort on.public int m_order
public SortInfo()
public SortInfo(int id, int order)
SortInfo
object.id
- The InternalID
associated with the field to sort on.order
- An integer value indicating the sort order for the field (1 - ascending, 2 - descending).public SortInfo(int id, IQuerySource source, int order)
SortInfo
object used by dynamic queries.id
- The InternalID
associated with the field to sort on.source
- The IQuerySource
associated with the field to sort on.order
- An integer value indicating the sort order for the field (1 - ascending, 2 - descending).public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public int getFieldID()
public int getSortOrder()
public IQuerySource getSource()
IQuerySource
form or query containing the field to sort onpublic boolean equals(Object obj)
public int hashCode()
? Copyright 2013 BMC Software, Inc.