GuidValue

open class GuidValue : DataValue

Encapsulates an OData GUID value.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val dataType: DataType
Link copied to clipboard
val value: GUID

Functions

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
open fun toBinary(): ByteArray

Convert the wrapped value to binary format (16 bytes).

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.GuidValue#dataType GuidValue.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
open fun toString32(): String

Convert the wrapped value to the 32-character GUID format, e.g. "21ec20203aea1069a2dd08002b30309d".

Link copied to clipboard
open fun toString36(): String

Convert the wrapped value to the 36-character GUID format, e.g. "21ec2020-3aea-1069-a2dd-08002b30309d".