|
SAP NetWeaver 7.4 (SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.tc.cmi.sorting.CMISortCriterion
com.sap.tc.cmi.sorting.CMISortByColumn
public final class CMISortByColumn
Instructs a collection to order its data by the value of a single column. The column is identified by its name. The way how the data is to be sorted is described by the (optional) comparison rule and a boolean flag reverse indicates whether the order defined by the comparison rule has to be reversed.
The term 'column' has been chosen instead of 'property' or 'attribute' as sorting is not necessarily restricted to data that is part of a model class. There might even be contexts where SortCriterion is used without any model class (e.g. ValueNode in Web Dynpro Context).
Objects of this type are immutable, so the existing mutator methods all return a new, modified copy of
this CMISortByColumn object.
Type Classification:
This class is part of the Common Model Interface, so applications may reference it or call any method of this type, but they must not subclass it.
| Field Summary |
|---|
| Fields inherited from class com.sap.tc.cmi.sorting.CMISortCriterion |
|---|
NONE |
| Constructor Summary | |
|---|---|
CMISortByColumn(String columnName)
Creates a column sort criterion for the column name given. |
|
CMISortByColumn(String columnName,
boolean reversed)
Creates a column sort criterion with the column name and sort order reversal defined by the parameters. |
|
| Method Summary | |
|---|---|
CMISortByColumn |
changeColumnName(String columnName)
Returns a new CMISortByColumn instance as copy of this instance where the column name
has been changed to columnName. |
CMISortByColumn |
changeDirection(boolean reversed)
Returns a new CMISortByColumn instance as copy of this instance where the reversed sort order
flag is changed to reversed. |
boolean |
equals(CMISortByColumn other)
|
boolean |
equals(Object other)
|
String |
getColumnName()
Get the column name of this sort criterion. |
CMIComparisonRule |
getComparisonRule()
Get the comparison rule of this sort criterion. |
int |
hashCode()
|
boolean |
isReversed()
Get the flag for reversed sort order for this sort criterion. |
CMISortByColumn |
reverse()
Returns a new CMISortByColumn instance as copy of this instance where the sort order
reverse flag is inverted. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CMISortByColumn(String columnName)
CMIComparisonRule.MODEL_DEFINED.
columnName - Column name
public CMISortByColumn(String columnName,
boolean reversed)
CMIComparisonRule.MODEL_DEFINED.
columnName - Column namereversed - Flag if sort order is to be reversed| Method Detail |
|---|
public String getColumnName()
public CMIComparisonRule getComparisonRule()
public boolean isReversed()
public CMISortByColumn changeColumnName(String columnName)
CMISortByColumn instance as copy of this instance where the column name
has been changed to columnName.
public CMISortByColumn changeDirection(boolean reversed)
CMISortByColumn instance as copy of this instance where the reversed sort order
flag is changed to reversed.
public CMISortByColumn reverse()
CMISortByColumn instance as copy of this instance where the sort order
reverse flag is inverted.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectpublic boolean equals(CMISortByColumn other)
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] FRAMEWORK
|
[sap.com] tc/cm/ejb/api
|
api
|
BC-JAS-EJB
|
[sap.com] FRAMEWORK
|
[sap.com] tc/cmi
|
default
|
BC-WD-JAV-RUN
|
|
SAP NetWeaver 7.4 (SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||