Classes

The following classes are available globally.

  • The built-in Offline OData metadata, such as the ErrorArchive.

    See more

    Declaration

    Swift

    public class OfflineODataMetadata
  • A data service provider for Offline OData.

    See more

    Declaration

    Swift

    open class OfflineODataProvider : DataServiceProvider
  • A class used to call Offline OData specific $filter functions.

    See more

    Declaration

    Swift

    public class OfflineODataQueryFunction : QueryFunction
  • Extend the SAPOData.RequestOptions to support Offline OData specific request options.

    See more

    Declaration

    Swift

    open class OfflineODataRequestOptions : RequestOptions
  • Specifies a transaction ID to use for a request when OfflineODataParameters.enableTransactionBuilder is true.

    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:

    let 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 )
    
    See more

    Declaration

    Swift

    public class TransactionID
  • A built-in Offline OData entity type which stores information about a modification request which failed during an upload operation.

    See more

    Declaration

    Swift

    public class OfflineODataErrorArchiveEntity : EntityValue
  • A built-in Offline OData entity type which stores information about Offline OData events such as upload and download.

    See more

    Declaration

    Swift

    public class OfflineODataEvent : EntityValue
  • A built-in Offline OData entity type which stores information about Offline OData requests to the backend service.

    See more

    Declaration

    Swift

    public class OfflineODataRequest : EntityValue