|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.sapjcosupport.SearchCriterion
Class that encapsulates the concept of a search criterion.
It allows you to specify the search criteria for the SAP Search Help.
OR-conditions. Criteria that operate on different
SAP fields are considered AND-conditions.
| Field Summary | |
static String |
BETWEEN
Option: field value is between value of lower and higher limit |
static String |
CONTAINS_NOT_PATTERN
Option: field value does not contain the pattern in lower limit value |
static String |
CONTAINS_PATTERN
Option: field value contains the pattern in lower limit value |
static String |
EQUAL
Option: field value equals value of lower limit |
static String |
GREATER
Option: field value is greater than value of lower limit |
static String |
GREATER_OR_EQUAL
Option: field value is greater or equal to value of lower limit |
static String |
LESS
Option: field value is less than value of lower limit |
static String |
LESS_OR_EQUAL
Option: field value is less or equal to value of lower limit |
static String |
NOT_BETWEEN
Option: field value is not between value of lower and higher limit |
static String |
NOT_EQUAL
Option: field valie is not equal to value of lower limit |
| Constructor Summary | |
SearchCriterion()
|
|
| Method Summary | |
String |
getField()
Gets the SAP field to which this search criterion applies. |
String |
getHighLimit()
Gets the higher limit associated with this search criterion's option. |
String |
getLowLimit()
Gets the lower limit associated with this search criterion's option. |
String |
getOption()
Gets the option that is associated with this search criterion. |
boolean |
isIncluded()
Returns true if items that match this criterion should be included in the results. |
void |
setField(String field)
Sets the SAP field to which this search criterion applies |
void |
setHighLimit(String highLimit)
Sets the higher limit for the option that is associated with this search helper. |
void |
setIncluded(boolean include)
Sets the sign of this search criterion. |
void |
setLowLimit(String lowLimit)
Sets the lower limit for the option that is associated with this search helper. |
void |
setOption(String option)
Sets the option of the search criterion. |
Map |
toMap()
Helper method to convert a SearchCriterion object to a Map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String EQUAL
public static final String CONTAINS_PATTERN
public static final String BETWEEN
public static final String NOT_BETWEEN
public static final String NOT_EQUAL
public static final String CONTAINS_NOT_PATTERN
public static final String GREATER
public static final String LESS
public static final String GREATER_OR_EQUAL
public static final String LESS_OR_EQUAL
| Constructor Detail |
public SearchCriterion()
| Method Detail |
public String getOption()
public void setOption(String option)
BETWEEN.
You can assign those parameters by calling the setHighLimit(java.lang.String) and setLowLimit(java.lang.String)
methods. If only 1 parameter is required, assign it to as the lower limit and leave the high limit blank.
Possible options are:
option - option for this search criterion (please use the constants defined in this class)public String getField()
public void setField(String field)
field - SAP field namepublic void setIncluded(boolean include)
include - true if you want to include results that match this criterionpublic boolean isIncluded()
public String getLowLimit()
public void setLowLimit(String lowLimit)
lowLimit - lower limit for specified optionpublic String getHighLimit()
public void setHighLimit(String highLimit)
highLimit - higher limit for specified optionpublic Map toMap()
SearchCriterion object to a Map.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||