Classes
The following classes are available globally.
-
The built-in Offline OData metadata, such as the ErrorArchive.
See moreDeclaration
Swift
public class OfflineODataMetadata -
OfflineODataParameters contains the configuration details for an
See moreOfflineODataProvider.Declaration
Swift
public class OfflineODataParameters -
A data service provider for Offline OData.
See moreDeclaration
Swift
open class OfflineODataProvider : DataServiceProvider, @unchecked Sendable -
A class used to call Offline OData specific $filter functions.
See moreDeclaration
Swift
public class OfflineODataQueryFunction : QueryFunction -
Extend the SAPOData.RequestOptions to support Offline OData specific request options.
See moreDeclaration
Swift
open class OfflineODataRequestOptions : RequestOptions, @unchecked Sendable -
Specifies a transaction ID to use for a request when
OfflineODataParameters.enableTransactionBuilderistrue.Here is an example of creating a Customer and a related Order and having both operations use the new Customer’s entity ID as the transaction ID so that they both get put in the same transaction by the transaction builder:
See morelet newCustomer = EntityValue( type: customerEntityType ) let newOrder = EntityValue( type: orderEntityType ) // Fill in newCustomer and newOrder properties here... // This will create the new customer and the transaction ID of the request // will be the generated entity ID. let createCustomerOptions = OfflineODataRequestOptions() createCustomerOptions.transactionID = TransactionID.useGeneratedIDForTransactionID service.createEntity( newCustomer, options: createCustomerOptions ) // This will create the new order related to the new customer and the transaction ID // will be the entity ID of the newly created customer. let createOrderOptions = OfflineODataRequestOptions() createOrderOptions.transactionID = TransactionID( newCustomer ) service.createRelatedEntity( newOrder, in: newCustomer, property: ordersNavigationProperty, options: createOrderOptions )Declaration
Swift
public class TransactionID -
Specifies a upload categoy to use for a request.
The following example creates a customer and a related order where both operations use the new customer’s entity ID as the upload category:
See morelet newCustomer = EntityValue( type: customerEntityType ) let newOrder = EntityValue( type: orderEntityType ) // Fill in newCustomer and newOrder properties here... // This will create the new customer and the upload category of the request // will be the generated entity ID. let createCustomerOptions = OfflineODataRequestOptions() createCustomerOptions.uploadCategory = UploadCategory.useGeneratedIDForUploadCategory() service.createEntity( newCustomer, options: createCustomerOptions ) // This will create the new order related to the new customer and the upload category // will be the entity ID of the newly created customer. let createOrderOptions = OfflineODataRequestOptions() createOrderOptions.uploadCategory = UploadCategory( newCustomer ) service.createRelatedEntity( newOrder, in: newCustomer, property: ordersNavigationProperty, options: createOrderOptions )Declaration
Swift
public class UploadCategory -
Undocumented
See moreDeclaration
Swift
open class InternalUtil -
A built-in Offline OData entity type which stores information about Offline OData custom headers.
See moreDeclaration
Swift
public class OfflineODataCustomHeader : EntityValue, @unchecked Sendable -
A built-in Offline OData entity type which stores information about a modification request which failed during an upload operation.
See moreDeclaration
Swift
public class OfflineODataErrorArchiveEntity : EntityValue, @unchecked Sendable -
A built-in Offline OData entity type which stores information about Offline OData events such as upload and download.
See moreDeclaration
Swift
public class OfflineODataEvent : EntityValue, @unchecked Sendable -
A built-in Offline OData entity type which stores information about Offline OData requests to the backend service.
See moreDeclaration
Swift
public class OfflineODataRequest : EntityValue, @unchecked Sendable -
Undocumented
Declaration
Swift
@objc public class OperationSessionInfo : NSObject -
Internal bridge for Objective-C callback
See moreDeclaration
Swift
@objc public class OfflineODataProviderProgressInternal : NSObject -
Internal one as a bridge between Objective-C wrapper and user’s delegate object.
See moreDeclaration
Swift
@objc public class OfflineODataProviderDelegateInternal : NSObject -
MOData side operation status pulling object. This object is sharing the same SAPURLSessoin as the OfflineODataProvider. The pulling interval is set to 2 seconds, which needs to be fine tuned.
See moreDeclaration
Swift
@objc public class ServerProgressPulling : NSObject