Class ODataDataSource

All Implemented Interfaces:
com.isomorphic.base.IAutoConfigurable, com.isomorphic.datasource.Committable, com.isomorphic.datasource.FreeResourcesHandler, com.isomorphic.datasource.IType, com.isomorphic.datasource.RequiresCompleteRESTResponse, IToJSON, Serializable

public class ODataDataSource extends RestConnector implements com.isomorphic.datasource.RequiresCompleteRESTResponse
ODataDataSource is a custom subclass of RestConnector that adds functionality for REST services that follow the OData protocol. Specifically, support is provided to:
  • Generate an OData-compliant "$filter" query from standard SmartClient criteria
  • Generate an OData "$orderby" parameter from the SmartClient sortBy information
  • Generate an OData "$select" parameter from the SmartClient "outputs" information
  • Derive "$skip" and "$top" attributes from the SmartClient startRow and endRow
  • Derive and apply the necessary "maxpagesize" Prefer header to encourage the remote server to allow the page size we would like to use
  • Request the OData "$count" property and make use of it to populate totalRows.
  • Modify certain things to match the OData defaults, where that differs from the normal RestConnector defaults
  • Apply all these generated and derived properties to the REST call
See Also: