QueryValue

open class QueryValue : DataValue

Base class for paths and properties as well as wrapped constant values and query function/operation calls. Intended to allow convenient cascaded application of query functions/operators in fluent query construction.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.DataQuery}, {@link com.sap.cloud.mobile.kotlin.odata.DataPath}, {@link com.sap.cloud.mobile.kotlin.odata.Property}, {@link com.sap.cloud.mobile.kotlin.odata.QueryFunction}, {@link com.sap.cloud.mobile.kotlin.odata.QueryOperator}.

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val dataType: DataType

Functions

Link copied to clipboard
open fun add(value: DataValue): QueryValue

Return QueryOperator.add(this, value).

fun add(value: Double): QueryValue
fun add(value: Float): QueryValue
fun add(value: Int): QueryValue
fun add(value: Long): QueryValue
Link copied to clipboard
open fun all(lambda: DataPath, match: QueryFilter): QueryFilter

Return QueryOperator.all(this, lambda, match).

Link copied to clipboard
open fun any(lambda: DataPath, match: QueryFilter): QueryFilter

Return QueryOperator.any(this, lambda, match).

Link copied to clipboard
open fun asType(type: DataType): QueryValue

Return QueryFunction.asType(type, this).

Link copied to clipboard
open fun average(alias: String): AggregateValue

Return aggregate transformation item with this query value and 'average' aggregate method.

Link copied to clipboard
open fun ceiling(): QueryValue

Return QueryFunction.ceiling(this).

Link copied to clipboard
open fun concat(text: DataValue): QueryValue

Return QueryFunction.concat(this, text).

Link copied to clipboard
open fun contains(text: DataValue): QueryFilter

Return QueryFunction.contains(this, text).

Link copied to clipboard
open override fun copyMutable(): DataValue

Return a clone of this value if it (together with all value subcomponents) is possibly mutable, or return this value if it (together with all value subcomponents) is definitely immutable. The resulting value might share mutable metadata with this query.

Link copied to clipboard

Return aggregate transformation item with this query value and 'countdistinct' aggregate method.

Link copied to clipboard
open fun date(): QueryValue

Return QueryFunction.date(this).

Link copied to clipboard
open fun day(): QueryValue

Return QueryFunction.day(this).

Link copied to clipboard
open fun divide(value: DataValue): QueryValue

Return QueryOperator.divide(this, value).

fun divide(value: Double): QueryValue
fun divide(value: Float): QueryValue
fun divide(value: Int): QueryValue
fun divide(value: Long): QueryValue
Link copied to clipboard
open fun divideBy(value: DataValue): QueryValue

Return QueryOperator.divideBy(this, value).

Link copied to clipboard
open fun endsWith(suffix: DataValue): QueryFilter

Return QueryFunction.endsWith(this, text).

Link copied to clipboard
open fun equal(value: DataValue?): QueryFilter

Return QueryOperator.equal(this, value).

fun equal(value: Double): QueryFilter
fun equal(value: Float): QueryFilter
fun equal(value: Int): QueryFilter
fun equal(value: Long): QueryFilter
fun equal(value: String): QueryFilter
Link copied to clipboard
open fun floor(): QueryValue

Return QueryFunction.floor(this).

Link copied to clipboard

Return QueryFunction.fractionalSeconds(this).

Link copied to clipboard
open fun geoDistance(value: DataValue): QueryValue

Return QueryFunction.getDistance(this, value)

Link copied to clipboard

Return QueryFunction.getIntersects(this, value)

Link copied to clipboard
open fun geoLength(): QueryValue

Return QueryFunction.geoLength(this)

Link copied to clipboard

Return QueryOperator.greaterEqual(this, value).

Link copied to clipboard

Return QueryOperator.greaterThan(this, value).

Link copied to clipboard
open fun hasFlags(flags: Int): QueryFilter

Return QueryOperator.has(this, flag). The current object must be a path or property with enum type.

Link copied to clipboard
open fun hour(): QueryValue

Return QueryFunction.hour(this).

Link copied to clipboard
open fun indexOf(text: DataValue): QueryValue

Return QueryFunction.indexOf(this, text).

Link copied to clipboard
open fun inList(list: DataValue): QueryFilter

Return QueryOperator.inList(this, list).

Link copied to clipboard
open fun isMember(member: String): QueryFilter

Return QueryOperator.isMember(this, member).

Link copied to clipboard
open fun isNull(): QueryFilter

Return QueryOperator.equal(this, null).

Link copied to clipboard
open fun isType(type: DataType): QueryFilter

Return QueryFunction.isType(type, this).

Link copied to clipboard
open fun isValue(value: DataValue): QueryFilter

Return QueryOperator.isValue(this, value).

Link copied to clipboard
open fun length(): QueryValue

Return QueryFunction.length(this).

Link copied to clipboard
open fun lessEqual(value: DataValue): QueryFilter

Return QueryOperator.lessEqual(this, value).

Link copied to clipboard
open fun lessThan(value: DataValue): QueryFilter

Return QueryOperator.lessThan(this, value).

fun lessThan(value: Int): QueryFilter
Link copied to clipboard
open fun maximum(alias: String): AggregateValue

Return aggregate transformation item with this query value and 'maximum' aggregate method.

Link copied to clipboard
open fun minimum(alias: String): AggregateValue

Return aggregate transformation item with this query value and 'minimum' aggregate method.

Link copied to clipboard
open fun minute(): QueryValue

Return QueryFunction.minute(this).

Link copied to clipboard
open fun modulo(value: DataValue): QueryValue

Return QueryOperator.modulo(this, value).

fun modulo(value: Double): QueryValue
fun modulo(value: Float): QueryValue
fun modulo(value: Int): QueryValue
fun modulo(value: Long): QueryValue
Link copied to clipboard
open fun month(): QueryValue

Return QueryFunction.month(this).

Link copied to clipboard
open fun multiply(value: DataValue): QueryValue

Return QueryOperator.multiple(this, value).

fun multiply(value: Int): QueryValue
fun multiply(value: Long): QueryValue
Link copied to clipboard
open fun negate(): QueryValue

Return QueryOperator.negate(this).

Link copied to clipboard
open fun notEqual(value: DataValue?): QueryFilter

Return QueryOperator.notEqual(this, value).

fun notEqual(value: Int): QueryFilter
Link copied to clipboard
open fun notNull(): QueryFilter

Return QueryOperator.notEqual(this, null).

Link copied to clipboard
open fun round(): QueryValue

Return QueryFunction.round(this).

Link copied to clipboard
open fun second(): QueryValue

Return QueryFunction.second(this).

Link copied to clipboard
open fun startsWith(prefix: DataValue): QueryFilter

Return QueryFunction.startsWith(this, text).

Link copied to clipboard
open fun substring(start: DataValue): QueryValue
fun substring(start: Int): QueryValue
fun substring(start: Int, length: Int): QueryValue

open fun substring(start: DataValue, length: DataValue?): QueryValue

Return QueryFunction.substring(this, start, length).

Link copied to clipboard
open fun subtract(value: DataValue): QueryValue

Return QueryOperator.subtract(this, value).

fun subtract(value: Int): QueryValue
fun subtract(value: Long): QueryValue
Link copied to clipboard
open fun sum(alias: String): AggregateValue

Return aggregate transformation item with this query value and 'sum' aggregate method.

Link copied to clipboard
open fun time(): QueryValue

Return QueryFunction.time(this).

Link copied to clipboard
open fun toLower(): QueryValue

Return QueryFunction.toLower(this).

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

Convert this data value to a string. If the {@link com.sap.cloud.mobile.kotlin.odata.QueryValue#dataType QueryValue.dataType} is defined by XML Schema Part 2: Datatypes, then the corresponding lexical format is used. JSON format is used for structured values (arrays and objects).

Link copied to clipboard

Return QueryFunction.totalOffsetMinutes(this).

Link copied to clipboard
open fun toUpper(): QueryValue

Return QueryFunction.toUpper(this).

Link copied to clipboard
open fun trim(): QueryValue

Return QueryFunction.trim(this).

Link copied to clipboard
open fun unwrap(): DataValue

Return the path, property, constant value or query function/operator call which is wrapped by this object.

Link copied to clipboard
open fun year(): QueryValue

Return QueryFunction.year(this).