public class FilterExpression extends Object
| Constructor and Description |
|---|
FilterExpression(String field,
String operator,
ODataType right)
Creates a simple filter expression of the form field operator operand
|
FilterExpression(String field,
String operator,
ODataType right,
boolean isLeftFilterFunction)
Creates a simple filter expression of the form field operator operand
|
| Modifier and Type | Method and Description |
|---|---|
FilterExpression |
and(FilterExpression andExpression)
Returns a filterExpression which is the AND of this filterExpressions and the parameter filterExpression.
|
static FilterExpression |
not(FilterExpression filter) |
FilterExpression |
or(FilterExpression orExpression)
Returns a filterExpression which is the OR of this filterExpression and the parameter filterExpression.
|
String |
toString() |
String |
toString(org.apache.olingo.odata2.api.edm.EdmEntityType entityType) |
public FilterExpression(String field, String operator, ODataType right)
field - Name of the property/fieldoperator - operator as a String. For example:- eq, gt.right - an ODataType instance representing the operand.public FilterExpression(String field, String operator, ODataType right, boolean isLeftFilterFunction)
field - Name of the property/fieldoperator - operator as a String. For example:- eq, gt.right - an ODataType instance representing the operand.isLeftFilterFunction - specifies if left operand is filter functionpublic static FilterExpression not(FilterExpression filter)
public FilterExpression or(FilterExpression orExpression)
orExpression - is the filterExpression which will be ORed with this filterExpression.public FilterExpression and(FilterExpression andExpression)
andExpression - is the filterExpression which will be ANDed with this filterExpression.public String toString(org.apache.olingo.odata2.api.edm.EdmEntityType entityType) throws org.apache.olingo.odata2.api.edm.EdmException
org.apache.olingo.odata2.api.edm.EdmExceptionCopyright © 2020 SAP. All Rights Reserved.