|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
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.
Remark: If multiple search criteria are defined for a search, the criteria that operate
on the same SAP field are considered 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)
Please use the constants defined in this class to assign an option.
Some options require 2 parameters to operate correctly, e.g. 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)
The sign of a search criterion defines if the items that match this criterion should be excluded or included from the results. This allows more complex queries, e.g. Select all materials beginning with "ES", but exclude those ending with "MF".
include
- true if you want to include results that match this criterionpublic boolean isIncluded()
public String getLowLimit()
If only one parameter is required for the specified option, this method returns that single limit.
public void setLowLimit(String lowLimit)
If only one parameter is required for the specified option, please use this method to assign that single limit.
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 All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |