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.

  • Convenience overload of concat(DataValue).

    Declaration

    Swift

    public func concat(_ text: String) -> QueryValue
  • Convenience overload of contains(DataValue).

    Declaration

    Swift

    public func contains(_ text: String) -> QueryFilter
  • Convenience overload of endsWith(DataValue).

    Declaration

    Swift

    public func endsWith(_ suffix: String) -> QueryFilter
  • Convenience overload of indexOf(DataValue).

    Declaration

    Swift

    public func indexOf(_ text: String) -> QueryValue
  • Convenience overload of startsWith(DataValue).

    Declaration

    Swift

    public func startsWith(_ prefix: String) -> QueryFilter
  • Convenience overload of substring(start: DataValue, length: DataValue).

    Declaration

    Swift

    public func substring(_ start: Int, _ length: Int? = nil) -> QueryValue
  • Convenience overload of equal(DataValue).

    Declaration

    Swift

    public func equal(_ value: Bool) -> QueryFilter
  • Convenience overload of equal(DataValue).

    Declaration

    Swift

    public func equal(_ value: Int) -> QueryFilter
  • Convenience overload of equal(DataValue).

    Declaration

    Swift

    public func equal(_ value: Int64) -> QueryFilter
  • Convenience overload of equal(DataValue).

    Declaration

    Swift

    public func equal(_ value: BigInteger) -> QueryFilter
  • Convenience overload of equal(DataValue).

    Declaration

    Swift

    public func equal(_ value: BigDecimal) -> QueryFilter
  • Convenience overload of equal(DataValue).

    Declaration

    Swift

    public func equal(_ value: Float) -> QueryFilter
  • Convenience overload of equal(DataValue).

    Declaration

    Swift

    public func equal(_ value: Double) -> QueryFilter
  • Convenience overload of equal(DataValue).

    Declaration

    Swift

    public func equal(_ value: String) -> QueryFilter
  • Convenience overload of notEqual(DataValue).

    Declaration

    Swift

    public func notEqual(_ value: Bool) -> QueryFilter
  • Convenience overload of notEqual(DataValue).

    Declaration

    Swift

    public func notEqual(_ value: Int) -> QueryFilter
  • Convenience overload of notEqual(DataValue).

    Declaration

    Swift

    public func notEqual(_ value: Int64) -> QueryFilter
  • Convenience overload of notEqual(DataValue).

    Declaration

    Swift

    public func notEqual(_ value: BigInteger) -> QueryFilter
  • Convenience overload of notEqual(DataValue).

    Declaration

    Swift

    public func notEqual(_ value: BigDecimal) -> QueryFilter
  • Convenience overload of notEqual(DataValue).

    Declaration

    Swift

    public func notEqual(_ value: Float) -> QueryFilter
  • Convenience overload of notEqual(DataValue).

    Declaration

    Swift

    public func notEqual(_ value: Double) -> QueryFilter
  • Convenience overload of notEqual(DataValue).

    Declaration

    Swift

    public func notEqual(_ value: String) -> QueryFilter
  • Convenience overload of lessThan(DataValue).

    Declaration

    Swift

    public func lessThan(_ value: Int) -> QueryFilter
  • Convenience overload of lessThan(DataValue).

    Declaration

    Swift

    public func lessThan(_ value: Int64) -> QueryFilter
  • Convenience overload of lessThan(DataValue).

    Declaration

    Swift

    public func lessThan(_ value: BigInteger) -> QueryFilter
  • Convenience overload of lessThan(DataValue).

    Declaration

    Swift

    public func lessThan(_ value: BigDecimal) -> QueryFilter
  • Convenience overload of lessThan(DataValue).

    Declaration

    Swift

    public func lessThan(_ value: Float) -> QueryFilter
  • Convenience overload of lessThan(DataValue).

    Declaration

    Swift

    public func lessThan(_ value: Double) -> QueryFilter
  • Convenience overload of lessThan(DataValue).

    Declaration

    Swift

    public func lessThan(_ value: String) -> QueryFilter
  • Convenience overload of lessEqual(DataValue).

    Declaration

    Swift

    public func lessEqual(_ value: Int) -> QueryFilter
  • Convenience overload of lessEqual(DataValue).

    Declaration

    Swift

    public func lessEqual(_ value: Int64) -> QueryFilter
  • Convenience overload of lessEqual(DataValue).

    Declaration

    Swift

    public func lessEqual(_ value: BigInteger) -> QueryFilter
  • Convenience overload of lessEqual(DataValue).

    Declaration

    Swift

    public func lessEqual(_ value: BigDecimal) -> QueryFilter
  • Convenience overload of lessEqual(DataValue).

    Declaration

    Swift

    public func lessEqual(_ value: Float) -> QueryFilter
  • Convenience overload of lessEqual(DataValue).

    Declaration

    Swift

    public func lessEqual(_ value: Double) -> QueryFilter
  • Convenience overload of lessEqual(DataValue).

    Declaration

    Swift

    public func lessEqual(_ value: String) -> QueryFilter
  • Convenience overload of greaterThan(DataValue).

    Declaration

    Swift

    public func greaterThan(_ value: Int) -> QueryFilter
  • Convenience overload of greaterThan(DataValue).

    Declaration

    Swift

    public func greaterThan(_ value: Int64) -> QueryFilter
  • Convenience overload of greaterThan(DataValue).

    Declaration

    Swift

    public func greaterThan(_ value: BigInteger) -> QueryFilter
  • Convenience overload of greaterThan(DataValue).

    Declaration

    Swift

    public func greaterThan(_ value: BigDecimal) -> QueryFilter
  • Convenience overload of greaterThan(DataValue).

    Declaration

    Swift

    public func greaterThan(_ value: Float) -> QueryFilter
  • Convenience overload of greaterThan(DataValue).

    Declaration

    Swift

    public func greaterThan(_ value: Double) -> QueryFilter
  • Convenience overload of greaterThan(DataValue).

    Declaration

    Swift

    public func greaterThan(_ value: String) -> QueryFilter
  • Convenience overload of greaterEqual(DataValue).

    Declaration

    Swift

    public func greaterEqual(_ value: Int) -> QueryFilter
  • Convenience overload of greaterEqual(DataValue).

    Declaration

    Swift

    public func greaterEqual(_ value: Int64) -> QueryFilter
  • Convenience overload of greaterEqual(DataValue).

    Declaration

    Swift

    public func greaterEqual(_ value: BigInteger) -> QueryFilter
  • Convenience overload of greaterEqual(DataValue).

    Declaration

    Swift

    public func greaterEqual(_ value: BigDecimal) -> QueryFilter
  • Convenience overload of greaterEqual(DataValue).

    Declaration

    Swift

    public func greaterEqual(_ value: Float) -> QueryFilter
  • Convenience overload of greaterEqual(DataValue).

    Declaration

    Swift

    public func greaterEqual(_ value: Double) -> QueryFilter
  • Convenience overload of greaterEqual(DataValue).

    Declaration

    Swift

    public func greaterEqual(_ value: String) -> QueryFilter
  • Convenience overload of add(DataValue).

    Declaration

    Swift

    public func add(_ value: Int) -> QueryValue
  • Convenience overload of add(DataValue).

    Declaration

    Swift

    public func add(_ value: Int64) -> QueryValue
  • Convenience overload of add(DataValue).

    Declaration

    Swift

    public func add(_ value: BigInteger) -> QueryValue
  • Convenience overload of add(DataValue).

    Declaration

    Swift

    public func add(_ value: BigDecimal) -> QueryValue
  • Convenience overload of add(DataValue).

    Declaration

    Swift

    public func add(_ value: Float) -> QueryValue
  • Convenience overload of add(DataValue).

    Declaration

    Swift

    public func add(_ value: Double) -> QueryValue
  • Convenience overload of subtract(DataValue).

    Declaration

    Swift

    public func subtract(_ value: Int) -> QueryValue
  • Convenience overload of subtract(DataValue).

    Declaration

    Swift

    public func subtract(_ value: Int64) -> QueryValue
  • Convenience overload of subtract(DataValue).

    Declaration

    Swift

    public func subtract(_ value: BigInteger) -> QueryValue
  • Convenience overload of subtract(DataValue).

    Declaration

    Swift

    public func subtract(_ value: BigDecimal) -> QueryValue
  • Convenience overload of subtract(DataValue).

    Declaration

    Swift

    public func subtract(_ value: Float) -> QueryValue
  • Convenience overload of subtract(DataValue).

    Declaration

    Swift

    public func subtract(_ value: Double) -> QueryValue
  • Convenience overload of multiply(DataValue).

    Declaration

    Swift

    public func multiply(_ value: Int) -> QueryValue
  • Convenience overload of multiply(DataValue).

    Declaration

    Swift

    public func multiply(_ value: Int64) -> QueryValue
  • Convenience overload of multiply(DataValue).

    Declaration

    Swift

    public func multiply(_ value: BigInteger) -> QueryValue
  • Convenience overload of multiply(DataValue).

    Declaration

    Swift

    public func multiply(_ value: BigDecimal) -> QueryValue
  • Convenience overload of multiply(DataValue).

    Declaration

    Swift

    public func multiply(_ value: Float) -> QueryValue
  • Convenience overload of multiply(DataValue).

    Declaration

    Swift

    public func multiply(_ value: Double) -> QueryValue
  • Convenience overload of divide(DataValue).

    Declaration

    Swift

    public func divide(_ value: Int) -> QueryValue
  • Convenience overload of divide(DataValue).

    Declaration

    Swift

    public func divide(_ value: Int64) -> QueryValue
  • Convenience overload of divide(DataValue).

    Declaration

    Swift

    public func divide(_ value: BigInteger) -> QueryValue
  • Convenience overload of divide(DataValue).

    Declaration

    Swift

    public func divide(_ value: BigDecimal) -> QueryValue
  • Convenience overload of divide(DataValue).

    Declaration

    Swift

    public func divide(_ value: Float) -> QueryValue
  • Convenience overload of divide(DataValue).

    Declaration

    Swift

    public func divide(_ value: Double) -> QueryValue
  • Convenience overload of modulo(DataValue).

    Declaration

    Swift

    public func modulo(_ value: Int) -> QueryValue
  • Convenience overload of modulo(DataValue).

    Declaration

    Swift

    public func modulo(_ value: Int64) -> QueryValue
  • Convenience overload of modulo(DataValue).

    Declaration

    Swift

    public func modulo(_ value: BigInteger) -> QueryValue
  • Convenience overload of modulo(DataValue).

    Declaration

    Swift

    public func modulo(_ value: BigDecimal) -> QueryValue
  • Convenience overload of modulo(DataValue).

    Declaration

    Swift

    public func modulo(_ value: Float) -> QueryValue
  • Convenience overload of modulo(DataValue).

    Declaration

    Swift

    public func modulo(_ value: Double) -> QueryValue
  • Undocumented

    Declaration

    Swift

    public func any(lambda: DataPath, match: QueryFilter) -> QueryFilter
  • Undocumented

    Declaration

    Swift

    public func all(lambda: DataPath, match: QueryFilter) -> QueryFilter
  • Default initializer.

    Declaration

    Swift

    override public init()
  • Declaration

    Swift

    open func add(_ value: DataValue) -> QueryValue

    Parameters

    value

    Value to be added to the current value.

    Return Value

    QueryOperator.add(this, value).

  • Declaration

    Swift

    open func all(_ lambda: DataPath, _ match: QueryFilter) -> QueryFilter

    Parameters

    lambda

    Lambda variable, constructed by DataPath.lambda.

    match

    Query filter.

    Return Value

    QueryOperator.all(this, lambda, match).

  • Declaration

    Swift

    open func any(_ lambda: DataPath, _ match: QueryFilter) -> QueryFilter

    Parameters

    lambda

    Lambda variable, constructed by DataPath.lambda.

    match

    Query filter.

    Return Value

    QueryOperator.any(this, lambda, match).

  • Declaration

    Swift

    open func asType(_ type: DataType) -> QueryValue

    Parameters

    type

    A data type.

    Return Value

    QueryFunction.asType(type, this).

  • Declaration

    Swift

    open func average(as alias: String) -> AggregateValue

    Parameters

    alias

    Alias of the transformation item.

    Return Value

    Aggregate transformation item with this query value and ‘average’ aggregate method.

  • Declaration

    Swift

    open func ceiling() -> QueryValue

    Return Value

    QueryFunction.ceiling(this).

  • Declaration

    Swift

    open func concat(_ text: DataValue) -> QueryValue

    Parameters

    text

    To be concatenated to the current value.

    Return Value

    QueryFunction.concat(this, text).

  • Declaration

    Swift

    open func contains(_ text: DataValue) -> QueryFilter

    Parameters

    text

    To search for in the current value.

    Return Value

    QueryFunction.contains(this, text).

  • Declaration

    Swift

    open func countDistinct(as alias: String) -> AggregateValue

    Parameters

    alias

    Alias of the transformation item.

    Return Value

    Aggregate transformation item with this query value and ‘countdistinct’ aggregate method.

  • Data type of the property.

    Declaration

    Swift

    override open var dataType: DataType { get }
  • Declaration

    Swift

    open func date() -> QueryValue

    Return Value

    QueryFunction.date(this).

  • Declaration

    Swift

    open func day() -> QueryValue

    Return Value

    QueryFunction.day(this).

  • Declaration

    Swift

    open func divide(_ value: DataValue) -> QueryValue

    Parameters

    value

    Divisor to be applied to the current value.

    Return Value

    QueryOperator.add(this, value).

  • Declaration

    Swift

    open func endsWith(_ suffix: DataValue) -> QueryFilter

    Parameters

    suffix

    Suffix to check for in the current value.

    Return Value

    QueryFunction.endsWith(this, text).

  • Declaration

    Swift

    open func equal(_ value: DataValue?) -> QueryFilter

    Parameters

    value

    Value to be compared with the current value.

    Return Value

    QueryOperator.equal(this, value).

  • Declaration

    Swift

    open func floor() -> QueryValue

    Return Value

    QueryFunction.floor(this).

  • Declaration

    Swift

    open func fractionalSeconds() -> QueryValue

    Return Value

    QueryFunction.fractionalSeconds(this).

  • Declaration

    Swift

    open func geoDistance(_ value: DataValue) -> QueryValue

    Parameters

    value

    Target point for distance calculation.

    Return Value

    QueryFunction.getDistance(this, value)

  • Declaration

    Swift

    open func geoIntersects(_ value: DataValue) -> QueryFilter

    Parameters

    value

    Target polygon for intersection calculation.

    Return Value

    QueryFunction.getIntersects(this, value)

  • Declaration

    Swift

    open func geoLength() -> QueryValue

    Return Value

    QueryFunction.geoLength(this)

  • Declaration

    Swift

    open func greaterEqual(_ value: DataValue) -> QueryFilter

    Parameters

    value

    Value to be compared with the current value.

    Return Value

    QueryOperator.greaterEqual(this, value).

  • Declaration

    Swift

    open func greaterThan(_ value: DataValue) -> QueryFilter

    Parameters

    value

    Value to be compared with the current value.

    Return Value

    QueryOperator.greaterThan(this, value).

  • Declaration

    Swift

    open func has(_ flag: Int) -> QueryFilter

    Parameters

    flag

    Flag value to be tested for.

    Return Value

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

  • Declaration

    Swift

    open func hour() -> QueryValue

    Return Value

    QueryFunction.hour(this).

  • Declaration

    Swift

    open func inList(_ list: DataValue) -> QueryFilter

    Parameters

    list

    List to check membership within (e.g. a StringList).

    Return Value

    QueryOperator.inList(this, list).

  • Declaration

    Swift

    open func indexOf(_ text: DataValue) -> QueryValue

    Parameters

    text

    To search for in the current value.

    Return Value

    QueryFunction.indexOf(this, text).

  • Declaration

    Swift

    open func isNull() -> QueryFilter

    Return Value

    QueryOperator.equal(this, null).

  • Declaration

    Swift

    open func isType(_ type: DataType) -> QueryFilter

    Parameters

    type

    A data type.

    Return Value

    QueryFunction.isType(type, this).

  • Declaration

    Swift

    open func length() -> QueryValue

    Return Value

    QueryFunction.length(this).

  • Declaration

    Swift

    open func lessEqual(_ value: DataValue) -> QueryFilter

    Parameters

    value

    Value to be compared with the current value.

    Return Value

    QueryOperator.lessEqual(this, value).

  • Declaration

    Swift

    open func lessThan(_ value: DataValue) -> QueryFilter

    Parameters

    value

    Value to be compared with the current value.

    Return Value

    QueryOperator.lessThan(this, value).

  • Declaration

    Swift

    open func maximum(as alias: String) -> AggregateValue

    Parameters

    alias

    Alias of the transformation item.

    Return Value

    Aggregate transformation item with this query value and ‘maximum’ aggregate method.

  • Declaration

    Swift

    open func minimum(as alias: String) -> AggregateValue

    Parameters

    alias

    Alias of the transformation item.

    Return Value

    Aggregate transformation item with this query value and ‘minimum’ aggregate method.

  • Declaration

    Swift

    open func minute() -> QueryValue

    Return Value

    QueryFunction.minute(this).

  • Declaration

    Swift

    open func modulo(_ value: DataValue) -> QueryValue

    Parameters

    value

    Modulus to be applied to the current value.

    Return Value

    QueryOperator.add(this, value).

  • Declaration

    Swift

    open func month() -> QueryValue

    Return Value

    QueryFunction.month(this).

  • Declaration

    Swift

    open func multiply(_ value: DataValue) -> QueryValue

    Parameters

    value

    Value to be multiplied by the current value.

    Return Value

    QueryOperator.add(this, value).

  • Declaration

    Swift

    open func negate() -> QueryValue

    Return Value

    QueryOperator.negate(this).

  • Declaration

    Swift

    open func notEqual(_ value: DataValue?) -> QueryFilter

    Parameters

    value

    Value to be compared with the current value.

    Return Value

    QueryOperator.notEqual(this, value).

  • Declaration

    Swift

    open func notNull() -> QueryFilter

    Return Value

    QueryOperator.notEqual(this, null).

  • Declaration

    Swift

    open func round() -> QueryValue

    Return Value

    QueryFunction.round(this).

  • Declaration

    Swift

    open func second() -> QueryValue

    Return Value

    QueryFunction.second(this).

  • Declaration

    Swift

    open func startsWith(_ prefix: DataValue) -> QueryFilter

    Parameters

    prefix

    Prefix to check for in the current value.

    Return Value

    QueryFunction.startsWith(this, text).

  • Declaration

    Swift

    open func substring(_ start: DataValue, _ length: DataValue? = nil) -> QueryValue

    Parameters

    start

    A starting index.

    length

    A substring length.

    Return Value

    QueryFunction.substring(this, start, length).

  • Declaration

    Swift

    open func subtract(_ value: DataValue) -> QueryValue

    Parameters

    value

    Value to be subtracted from the current value.

    Return Value

    QueryOperator.add(this, value).

  • Declaration

    Swift

    open func sum(as alias: String) -> AggregateValue

    Parameters

    alias

    Alias of the transformation item.

    Return Value

    Aggregate transformation item with this query value and ‘sum’ aggregate method.

  • Declaration

    Swift

    open func time() -> QueryValue

    Return Value

    QueryFunction.time(this).

  • Declaration

    Swift

    open func toLower() -> QueryValue

    Return Value

    QueryFunction.toLower(this).

  • Convert this data value to a string. If the 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).

    Declaration

    Swift

    override open func toString() -> String

    Return Value

    Lexical representation of this data value.

  • Declaration

    Swift

    open func toUpper() -> QueryValue

    Return Value

    QueryFunction.toUpper(this).

  • Declaration

    Swift

    open func totalOffsetMinutes() -> QueryValue

    Return Value

    QueryFunction.totalOffsetMinutes(this).

  • Declaration

    Swift

    open func trim() -> QueryValue

    Return Value

    QueryFunction.trim(this).

  • Declaration

    Swift

    open func unwrap() -> DataValue

    Return Value

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

  • Declaration

    Swift

    open class func wrap(_ value: DataValue) -> QueryValue

    Parameters

    value

    Data value.

    Return Value

    value wrapped so as to allow cascading query function/operator calls.

  • Declaration

    Swift

    open func year() -> QueryValue

    Return Value

    QueryFunction.year(this).