QueryOperator

open class QueryOperator

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);
}

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val arity: Int
Link copied to clipboard
val code: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String

{@inheritDoc}