Remote Data Adapter
From RemObjects Software
This is a Data Abstract Components entry
Feel free to add your notes to this topic below.
Delphi
The TDARemoteDataAdapter component forms the center of communication from the client to the server. It provides all the logic for retrieving data into TDADataTables, applying changes back to the server and handling any other data-related communication with the server such as retrieving business rules scripts or schema information.
The adapter contains four specialized TDARemoteDataAdapterRequests to configure how communication with the server is handled. These requests can handle talking to the standard v3.0 or v4.0 service interfaces out of the box, or can be configured to any custom server interface you might be using, with Dynamic Method Binding.
Essential Properties
- RemoteService specifies the data service that this adapter will communicate with
- DataStreamer specifies the type of data streamer to be used for reading and writing data from and to the network.
Dynamic Method Binding
The following aforementioned TDARemoteDataAdapterRequest-based properties allow the manual binding of the adapter to any custom server interface:
- GetDataCall describes the server call that will be used to fetch data from the server
- UpdateDataCall describes the server call that will be used to apply changes back to the server
- GetSchemaCall describes the server call that will be used to obtain schema info from the server (mostly at design-time)
- GetScriptsCall describes the server call that will be used to download business rules scripts
All of these calls can be reset to the default settings for the v4.0 or v3.0 service at any time, by calling the SetupDefaultRequest or SetupDefaultRequestV3 methods respectively, or by right-clicking the remote data adapter component at design-time and choosing the appropriate menu item. By default (when freshly dropped or created, the calls will be configured for the v4.0 interface
Class Hierarchy
TDABaseRemoteDataAdapter->TDARemoteDataAdapter
.NET
The RemoteDataAdapter component represents client-side access to a set of data tables published on the server.
It's similar to the other DataAdapter descendants provided by the .NET Framework (SqlDataAdapter, OleDbDataAdapter, etc.) and can be used it to retrieve schema information to fill a DataSet with data from the server or to apply local updates back to the server.
Essential Properties
- RemoteService specifies the service to call for fetching and updating data and for retrieving schema information.
- DataStreamer specifies the type of data streamer to be used for decoding and encoding data that is received from or sent back to the server.
- Schema returns the data Schema provided by the connected RemoteService.
Dynamic Method Binding
The RemoteDataAdapter supports Dynamic Method Binding to give control over how methods are invoked on the remote server to fetch or apply data.
The following properties allow the manual binding of the adapter to any custom server interface:
- DataRequestCall defines the remote service call that will be executed to fill a dataset with data from the remote server.
- DataUpdateCall defines the remote service call that will be executed to update the server data with local changes.
- SchemaCall defines the remote service call that will be executed to fetch schema information from the remote server.
By default, a newly instantiated RemoteDataAdapter is configured for the standard methods provided by Data Abstract servers, as defined in IDataAbstractService, but you can manually adjust aforementioned properties to control the calls that are made.
Class Hierarchy
RemObjects.Common.BaseComponent->RemObjects.DataAbstract.RemoteDataAdapter
See Also
Product: RemObjects Data Abstract
Current version: Data Abstract 'Vinci' (5.0)
Lists — Glossary — Features — How To — Drivers — Components — Tools — Samples — Articles — Architecture — Issues
Categories: Text | Data Abstract | Component | .NET | Delphi
