OfflineODataRequest

open class OfflineODataRequest : EntityValue, Parcelable

A built-in Offline OData entity type which stores information about Offline OData requests to the backend service.

Constructors

Link copied to clipboard
constructor(withDefaults: Boolean, @Nullable @Nullable withIndexMap: @Nullable SparseIndexMap)

Properties

Link copied to clipboard
@NotNull
open var affectedEntity: @NotNull Property
Link copied to clipboard
@NotNull
open var body: @NotNull Property
Link copied to clipboard
Link copied to clipboard
@NotNull
open var customHeaders: @NotNull Property
Link copied to clipboard
@NotNull
open var customTag: @NotNull Property
Link copied to clipboard
@NotNull
open var dependentRequests: @NotNull Property
Link copied to clipboard
@NotNull
open var method: @NotNull Property
Link copied to clipboard
@NotNull
open var requestID: @NotNull Property
Link copied to clipboard
@NotNull
open var status: @NotNull Property
Link copied to clipboard
val undefined: @NotNull DataValue
Link copied to clipboard
@NotNull
open var url: @NotNull Property

Functions

Link copied to clipboard
open fun asDraft(): @NotNull EntityValue
Link copied to clipboard
open fun bindEntity(entity: @NotNull EntityValue, to: @NotNull Property)
Link copied to clipboard
open fun castOptional(value: @Nullable DataValue): @Nullable EntityValue
Link copied to clipboard
open fun castRequired(value: @Nullable DataValue): @NotNull EntityValue
Link copied to clipboard
open fun cloneMutable(value: @Nullable DataValue): @Nullable DataValue
Link copied to clipboard
open fun compareKeys(left: @Nullable EntityValue, right: @Nullable EntityValue): Int
Link copied to clipboard
@NotNull
open fun copy(): @NotNull OfflineODataRequest
Link copied to clipboard
open fun copyEntity(): @NotNull EntityValue
Link copied to clipboard
open fun copyKey(from: @NotNull EntityValue)
Link copied to clipboard
open fun copyMutable(): @NotNull DataValue
Link copied to clipboard
open fun copyProperties(from: @NotNull EntityValue)
Link copied to clipboard
open fun copyStructure(): @NotNull StructureBase
Link copied to clipboard
open fun describeContents(): Int
Internal implementation.
Link copied to clipboard
open fun equal(left: @Nullable EntityValue, right: @Nullable EntityValue): Boolean
Link copied to clipboard
open fun equalKeys(left: @Nullable EntityValue, right: @Nullable EntityValue): Boolean
Link copied to clipboard
open fun equals(other: @Nullable Any): Boolean
Link copied to clipboard
open fun forCreate(): @NotNull EntityValue
Link copied to clipboard
open fun forDeepCreate(paths: Array<@NotNull PropertyPath>): @NotNull EntityValue
Link copied to clipboard
open fun forDeepUpdate(paths: Array<@NotNull PropertyPath>): @NotNull EntityValue
Link copied to clipboard
open fun forUpdate(): @NotNull EntityValue
Link copied to clipboard
open fun generateDraftKey()
Link copied to clipboard
@Nullable
open fun getAffectedEntity(): @Nullable EntityValue
Return (nullable) The navigation property which allows navigating from the request to the primary entity.
Link copied to clipboard
Link copied to clipboard
fun getAnnotations(): @NotNull AnnotationMap
Link copied to clipboard
fun getBackendETag(): @Nullable String
Link copied to clipboard
@Nullable
open fun getBody(): @Nullable String
Return (nullable) The JSON body sent to the OData backend.
Link copied to clipboard
open fun getCanonicalURL(): @NotNull String
Link copied to clipboard
fun getCascadePaths(): @Nullable PropertyPathList
Link copied to clipboard
Link copied to clipboard
open fun getChangeFlags(): Int
Link copied to clipboard
fun getContentID(): @Nullable String
Link copied to clipboard
@NotNull
open fun getCustomHeaders(): @NotNull List<@NotNull OfflineODataCustomHeader>
Return the navigation property which can be used to list the custom headers attached to this request.
Link copied to clipboard
@Nullable
open fun getCustomTag(): @Nullable String
Return (nullable) The value of the custom tag field bound to the request.
Link copied to clipboard
fun getDataPath(): @Nullable DataPath
Link copied to clipboard
open fun getDataType(): @NotNull DataType
Link copied to clipboard
fun getDataValue(path: @NotNull PropertyPath): @Nullable DataValue
Link copied to clipboard
Link copied to clipboard
fun getDeltaTime(): @Nullable GlobalDateTime
Link copied to clipboard
@NotNull
open fun getDependentRequests(): @NotNull List<@NotNull OfflineODataRequest>
Return the navigation property which can be used to list requests that depend on this request.
Link copied to clipboard
fun getDynamic(name: @NotNull String): @Nullable DataValue
Link copied to clipboard
fun getDynamicProperties(): @NotNull DataValueMap
Link copied to clipboard
fun getEditLink(): @Nullable String
Link copied to clipboard
fun getEntityID(): @Nullable String
Link copied to clipboard
open fun getEntityKey(): @NotNull EntityKey
Link copied to clipboard
open fun getEntitySet(): @NotNull EntitySet
Link copied to clipboard
open fun getEntityTag(): @Nullable String
Link copied to clipboard
fun getEntityType(): @NotNull EntityType
Link copied to clipboard
Link copied to clipboard
fun getInternalData(): @Nullable Any
Link copied to clipboard
open fun getMediaStream(): @NotNull StreamLink
Link copied to clipboard
@Nullable
open fun getMethod(): @Nullable String
Return (nullable) The HTTP method of the request.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getNextLink(path: @NotNull PropertyPath): @Nullable String
Link copied to clipboard
Link copied to clipboard
open fun getOfflineState(): Int
Link copied to clipboard
@NotNull
open fun getOld(): @NotNull OfflineODataRequest
Link copied to clipboard
open fun getOldEntity(): @Nullable EntityValue
Link copied to clipboard
fun getOldStructure(): @Nullable StructureBase
Link copied to clipboard
fun getOptionalValue(path: @NotNull PropertyPath): @Nullable DataValue
Link copied to clipboard
fun getParentEntity(): @Nullable EntityValue
Link copied to clipboard
fun getParentProperty(): @Nullable Property
Link copied to clipboard
fun getReadLink(): @Nullable String
Link copied to clipboard
@Nullable
open fun getRequestID(): @Nullable Long
Return (nullable) The request identifier.
Link copied to clipboard
fun getRequiredValue(path: @NotNull PropertyPath): @NotNull DataValue
Link copied to clipboard
open fun getSearchWords(): @NotNull StringList
Link copied to clipboard
@Nullable
open fun getStatus(): @Nullable String
Return (nullable) The status of the request: Unsent, Sent or Failed.
Link copied to clipboard
fun getStreamLink(property: @NotNull Property): @NotNull StreamLink
Link copied to clipboard
open fun getStructureType(): @NotNull StructureType
Link copied to clipboard
open fun getSystemFlags(): Int
Link copied to clipboard
open fun getSystemKey(): Long
Link copied to clipboard
open fun getTypeCode(): Int
Link copied to clipboard
@Nullable
open fun getUrl(): @Nullable String
Return (nullable) The request URL used when executing the request against the OData backend.
Link copied to clipboard
fun getValuePath(): @Nullable String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun hasConflict(): Boolean
Link copied to clipboard
fun hasDataType(type: @NotNull DataType): Boolean
Link copied to clipboard
fun hasDataValue(property: @NotNull Property): Boolean
Link copied to clipboard
Link copied to clipboard
open fun hasError(): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun hasKey(): Boolean
Link copied to clipboard
open fun hasLocalRelatives(): @Nullable Boolean
Link copied to clipboard
fun hasNextLink(property: @NotNull Property): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun inSet(set: @NotNull EntitySet): @NotNull EntityValue
Link copied to clipboard
open fun isBinding(): Boolean
Link copied to clipboard
open fun isContained(): Boolean
Link copied to clipboard
open fun isCreated(): Boolean
Link copied to clipboard
open fun isDeleted(): Boolean
Link copied to clipboard
open fun isDraft(): Boolean
Link copied to clipboard
open fun isLocal(): Boolean
Link copied to clipboard
open fun isNew(): Boolean
Link copied to clipboard
open fun isNewOrChanged(property: @NotNull Property): Boolean
Link copied to clipboard
open fun isProxy(): Boolean
Link copied to clipboard
open fun isReference(): Boolean
Link copied to clipboard
open fun isResolved(): Boolean
Link copied to clipboard
open fun isResolving(): Boolean
Link copied to clipboard
open fun isUpdated(): Boolean
Link copied to clipboard
open fun isUpsert(): Boolean
Link copied to clipboard
@NotNull
open fun key(@Nullable @Nullable requestID: @Nullable Long): @NotNull EntityKey
Link copied to clipboard
@NotNull
open fun list(@NonNull @NotNull from: @NotNull EntityValueList): @NotNull List<@NotNull OfflineODataRequest>
Link copied to clipboard
open fun ofType(type: @NotNull EntityType): @NotNull EntityValue
Link copied to clipboard
Link copied to clipboard
open fun resolveDataPath()
Link copied to clipboard
open fun resolveDataPaths()
Link copied to clipboard
open fun setAffectedEntity(@Nullable @Nullable value: @Nullable EntityValue)
Set the navigation property which allows navigating from the request to the primary entity.
Link copied to clipboard
open fun setAllowConflicts(value: Boolean)
Link copied to clipboard
fun setAnnotations(value: @NotNull AnnotationMap)
Link copied to clipboard
fun setBackendETag(value: @Nullable String)
Link copied to clipboard
open fun setBinding(value: Boolean)
Link copied to clipboard
open fun setBody(@Nullable @Nullable value: @Nullable String)
Set the JSON body sent to the OData backend.
Link copied to clipboard
fun setCascadePaths(value: @Nullable PropertyPathList)
Link copied to clipboard
open fun setChangedBindings(value: Boolean)
Link copied to clipboard
fun setChangeFlag(flag: Int, value: Boolean)
Link copied to clipboard
open fun setChangeFlags(value: Int)
Link copied to clipboard
open fun setConflict(value: Boolean)
Link copied to clipboard
open fun setContained(value: Boolean)
Link copied to clipboard
fun setContentID(value: @Nullable String)
Link copied to clipboard
open fun setCreated(value: Boolean)
Link copied to clipboard
open fun setCustomHeaders(@NonNull @NotNull value: @NotNull List<@NotNull OfflineODataCustomHeader>)
Set the navigation property which can be used to list the custom headers attached to this request.
Link copied to clipboard
open fun setCustomTag(@Nullable @Nullable value: @Nullable String)
Set the value of the custom tag field bound to the request.
Link copied to clipboard
fun setDataPath(value: @Nullable DataPath)
Link copied to clipboard
fun setDataValue(property: @NotNull Property, value: @Nullable DataValue)
Link copied to clipboard
open fun setDeepUpdateDelta(value: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setDeleted(value: Boolean)
Link copied to clipboard
fun setDeltaTime(value: @Nullable GlobalDateTime)
Link copied to clipboard
open fun setDependentRequests(@NonNull @NotNull value: @NotNull List<@NotNull OfflineODataRequest>)
Set the navigation property which can be used to list requests that depend on this request.
Link copied to clipboard
open fun setDraft(value: Boolean)
Link copied to clipboard
fun setDynamic(name: @NotNull String, value: @Nullable DataValue)
Link copied to clipboard
fun setDynamicProperties(value: @NotNull DataValueMap)
Link copied to clipboard
fun setEditLink(value: @Nullable String)
Link copied to clipboard
fun setEntityID(value: @Nullable String)
Link copied to clipboard
open fun setEntitySet(value: @NotNull EntitySet)
Link copied to clipboard
open fun setEntityTag(value: @Nullable String)
Link copied to clipboard
open fun setError(value: Boolean)
Link copied to clipboard
open fun setInErrorState(value: Boolean)
Link copied to clipboard
fun setInternalData(value: @Nullable Any)
Link copied to clipboard
open fun setLocal(value: Boolean)
Link copied to clipboard
open fun setLocalRelatives(value: @Nullable Boolean)
Link copied to clipboard
open fun setMediaStream(value: @NotNull StreamLink)
Link copied to clipboard
open fun setMethod(@Nullable @Nullable value: @Nullable String)
Set the HTTP method of the request.
Link copied to clipboard
open fun setMustBeModified(value: Boolean)
Link copied to clipboard
open fun setMustBeReloaded(value: Boolean)
Link copied to clipboard
open fun setNew(value: Boolean)
Link copied to clipboard
open fun setNoLocalCascade(value: Boolean)
Link copied to clipboard
open fun setOfflineState(value: Int)
Link copied to clipboard
open fun setOldEntity(value: @Nullable EntityValue)
Link copied to clipboard
fun setOldStructure(value: @Nullable StructureBase)
Link copied to clipboard
fun setOptionalValue(property: @NotNull Property, value: @Nullable DataValue)
Link copied to clipboard
fun setParentEntity(value: @Nullable EntityValue)
Link copied to clipboard
fun setParentProperty(value: @Nullable Property)
Link copied to clipboard
open fun setPendingChanges(value: Boolean)
Link copied to clipboard
fun setReadLink(value: @Nullable String)
Link copied to clipboard
open fun setReference(value: Boolean)
Link copied to clipboard
open fun setRelativesWithPendingChanges(value: @Nullable Boolean)
Link copied to clipboard
open fun setRequestID(@Nullable @Nullable value: @Nullable Long)
Set the request identifier.
Link copied to clipboard
fun setRequiredValue(property: @NotNull Property, value: @NotNull DataValue)
Link copied to clipboard
open fun setResolved(value: Boolean)
Link copied to clipboard
open fun setResolving(value: Boolean)
Link copied to clipboard
open fun setStatus(@Nullable @Nullable value: @Nullable String)
Set the status of the request: Unsent, Sent or Failed.
Link copied to clipboard
open fun setSystemFlags(value: Int)
Link copied to clipboard
open fun setSystemKey(value: Long)
Link copied to clipboard
fun setUnsafeValue(property: @NotNull Property, value: @Nullable DataValue)
Link copied to clipboard
open fun setUpdated(value: Boolean)
Link copied to clipboard
open fun setUpsert(value: Boolean)
Link copied to clipboard
open fun setUrl(@Nullable @Nullable value: @Nullable String)
Set the request URL used when executing the request against the OData backend.
Link copied to clipboard
fun setValuePath(value: @Nullable String)
Link copied to clipboard
open fun setWasNotModified(value: Boolean)
Link copied to clipboard
open fun takeSnapshot()
Link copied to clipboard
open fun toString(): @NotNull String
Link copied to clipboard
open fun unbindEntity(entity: @Nullable EntityValue, from: @NotNull Property)
Link copied to clipboard
fun unsetDataValue(property: @NotNull Property)
Link copied to clipboard
Link copied to clipboard
open fun withCreate(): @NotNull EntityValue
Link copied to clipboard
open fun withDeepCreate(paths: Array<@NotNull PropertyPath>): @NotNull EntityValue
Link copied to clipboard
open fun withDeepUpdate(paths: Array<@NotNull PropertyPath>): @NotNull EntityValue
Link copied to clipboard
open fun withKey(key: @NotNull EntityKey): @NotNull EntityValue
Link copied to clipboard
fun withLock(work: @NotNull Action0)
Link copied to clipboard
open fun withUpdate(): @NotNull EntityValue
Link copied to clipboard
open fun writeToParcel(out: Parcel, flags: Int)
Internal implementation.