Query Operator
Represents a OData query operator. Query operators are typically used within {@link com.sap.cloud.mobile.kotlin.odata.DataQuery#filter(com.sap.cloud.mobile.kotlin.odata.QueryFilter) DataQuery.filter}. {@link com.sap.cloud.mobile.kotlin.odata.QueryOperatorCall} can be constructed using static calls on {@link com.sap.cloud.mobile.kotlin.odata.QueryOperator} or, more conveniently, by chained calls on {@link com.sap.cloud.mobile.kotlin.odata.QueryValue}.
- Example using proxy classes (with QueryOperator static calls):
open fun queryOperatorExample(): kotlin.Unit { val service = this.service; val query = DataQuery() .filter(QueryOperator.greaterEqual(QueryOperator.multiply(OrderDetail.quantity, OrderDetail.unitPrice), DecimalValue.of(DecimalFunction.fromInt(1000)))); val details = service.getOrderDetails(query); this.showDetails(details); }
- Example using proxy classes (with QueryValue chained calls):
open fun queryValueOperatorExample(): kotlin.Unit { val service = this.service; val query = DataQuery() .filter(OrderDetail.quantity.multiply(OrderDetail.unitPrice) .greaterEqual(NorthwindProxyClient.DECIMAL_POSITIVE_1000)); val details = service.getOrderDetails(query); this.showDetails(details); }