DataUpdateRequest Class

From RemObjects Wiki
Jump to: navigation, search

This is a Library topic for Data Abstract for .NET
This page is generated from external data, please do not update

NamespacesInterfacesClassesEnumsImplements

Contents

Overview

DataRequestUpdate is used by Data Abstract to update data on the server without requiring an _Intf file to invoke it. This class makes use of the RemObjects SDK's Dynamic Request support.


Location


Properties

IncomingDeltaParameter

The Name of the parameter in which the resulting delta will be returned from the server. This must be a Binary parameter.



Prism:   property IncomingDeltaParameter: String read write
C#:   String IncomingDeltaParameter { get; set; }
VB:   Property IncomingDeltaParameter As String


MethodName     (declared in DynamicRequest)

Specifies the name of the method to call. Note: If the RemoteService property is assigned and the server is available at design time, you can select the method name from a list of available methods in the Property Browser's drop down box. When doing this, the Parameters collection will automatically be populated.



Prism:   property MethodName: String read write
C#:   String MethodName { get; set; }
VB:   Property MethodName As String


OutgoingDeltaParameter

The Name of the parameter in which the delta will be passed to the remote server. This must be a Binary parameter.



Prism:   property OutgoingDeltaParameter: String read write
C#:   String OutgoingDeltaParameter { get; set; }
VB:   Property OutgoingDeltaParameter As String


Owner     (declared in RemoteDataAdapterRequest)



Prism:   property Owner: BaseDataAdapter read write
C#:   BaseDataAdapter Owner { get; set; }
VB:   Property Owner As BaseDataAdapter


Parameters     (declared in DynamicRequest)

Defines the parameters that get passed into and out of the method call. For your call to succeed, these exactly have to match the parameters defined for your method; you can use the UpdateParamsFromRodl and UpdateParamsFromRodlOperation methods to populate the parameters automatically. Once the parameters are defined, you can set their values using ParameterByName("Name").Value before you make your call.

Note: If the RemoteService property is assigned and the server is available at design time, you can select the method name from a list of available methods in the Property Browser's drop down box. When doing this, the Parameters collection will automatically be populated.



Prism:   property Parameters: DynamicRequestParameterCollection read
C#:   DynamicRequestParameterCollection Parameters { get; }
VB:   Property ReadOnly Parameters As DynamicRequestParameterCollection


RemoteService     (declared in DynamicRequest)

References the RemoteService component that defines the service to call.



Prism:   property RemoteService: RemoteService read write
C#:   RemoteService RemoteService { get; set; }
VB:   Property RemoteService As RemoteService


ResultParameter     (declared in DynamicRequest)



Prism:   property ResultParameter: DynamicRequestParameter read
C#:   DynamicRequestParameter ResultParameter { get; }
VB:   Property ReadOnly ResultParameter As DynamicRequestParameter


Instance Methods

constructor ()     (declared in DynamicRequest)



Oxygene:   constructor
C#:   constructor()
VB:   Sub New


constructor (BaseDataAdapter)

Default constructor for DataUpdateRequest.


Oxygene:   constructor(owner: BaseDataAdapter)
C#:   constructor(BaseDataAdapter owner)
VB:   Sub New (owner As BaseDataAdapter)


Parameters:

  • owner:


constructor (IContainer)     (declared in DynamicRequest)



Oxygene:   constructor(container: IContainer)
C#:   constructor(IContainer container)
VB:   Sub New (container As IContainer)


Parameters:

  • container:


constructor (String, RemoteService)     (declared in DynamicRequest)



Oxygene:   constructor(methodName: String; remoteService: RemoteService)
C#:   constructor(String methodName, RemoteService remoteService)
VB:   Sub New (methodName As String, remoteService As RemoteService)


Parameters:

  • methodName:
  • remoteService:


constructor (String, RemoteService, array of DynamicRequestParameter)     (declared in DynamicRequest)



Oxygene:   constructor(methodName: String; remoteService: RemoteService; parameters: array of DynamicRequestParameter)
C#:   constructor(String methodName, RemoteService remoteService, array of DynamicRequestParameter parameters)
VB:   Sub New (methodName As String, remoteService As RemoteService, parameters As array of DynamicRequestParameter)


Parameters:

  • methodName:
  • remoteService:
  • parameters:


constructor (String, RemoteService, DynamicRequestParameterCollection)     (declared in DynamicRequest)



Oxygene:   constructor(methodName: String; remoteService: RemoteService; parameters: DynamicRequestParameterCollection)
C#:   constructor(String methodName, RemoteService remoteService, DynamicRequestParameterCollection parameters)
VB:   Sub New (methodName As String, remoteService As RemoteService, parameters As DynamicRequestParameterCollection)


Parameters:

  • methodName:
  • remoteService:
  • parameters:


constructor (String, RemoteService, IList<DynamicRequestParameter>)     (declared in DynamicRequest)



Oxygene:   constructor(methodName: String; remoteService: RemoteService; parameters: IList<DynamicRequestParameter>)
C#:   constructor(String methodName, RemoteService remoteService, IList<DynamicRequestParameter> parameters)
VB:   Sub New (methodName As String, remoteService As RemoteService, parameters As IList<DynamicRequestParameter>)


Parameters:

  • methodName:
  • remoteService:
  • parameters:


BeginMakeRequest     (declared in DynamicRequest)



Oxygene:   method BeginMakeRequest(cb: AsyncCallback; state: Object): IAsyncResult
C#:   IAsyncResult BeginMakeRequest(AsyncCallback cb, Object state)
VB:   Function BeginMakeRequest(cb As AsyncCallback, state As Object) As IAsyncResult


Parameters:

  • cb:
  • state:


EndMakeRequest     (declared in DynamicRequest)



Oxygene:   method EndMakeRequest(ar: IAsyncResult)
C#:   void EndMakeRequest(IAsyncResult ar)
VB:   Sub EndMakeRequest(ar As IAsyncResult)


Parameters:

  • ar:


MakeRequest     (declared in DynamicRequest)

Performs the actual request to the remote service.


Oxygene:   method MakeRequest
C#:   void MakeRequest()
VB:   Sub MakeRequest


ParameterByName     (declared in DynamicRequest)

Returns the DynamicRequestParameter of a given name. You can use this method to conveniently populate all parameters with their proper values without relying on their ordering, as shown in the example below.


Oxygene:   method ParameterByName(parameterName: String): DynamicRequestParameter
C#:   DynamicRequestParameter ParameterByName(String parameterName)
VB:   Function ParameterByName(parameterName As String) As DynamicRequestParameter


Parameters:

  • parameterName:


ReadParameter   protected     (declared in DynamicRequest)



Oxygene:   method ReadParameter(message: IMessage; parameter: DynamicRequestParameter)
C#:   void ReadParameter(IMessage message, DynamicRequestParameter parameter)
VB:   Sub ReadParameter(message As IMessage, parameter As DynamicRequestParameter)


Parameters:

  • message:
  • parameter:


SetupDefaultRequest

Sets or resets all parameters to the default settings needed when talking to a standard Data Abstract server implementing the IDataAbstractService interface. Note: This method is called automatically when this class is initialized. Unless you are using Dynamic Method Binding or manually modifying the request's Parameters, the request will default correctly for IDataAbstractService.


Oxygene:   method SetupDefaultRequest
C#:   void SetupDefaultRequest()
VB:   Sub SetupDefaultRequest


UpdateParamsFromRodl     (declared in DynamicRequest)

Retrieves the RODL file from the server, locates the service and method and populates the Parameters collection with the appropriate parameters needed for the method call. Any parameters or values defined prior to calling UpdateParamsFromRodl will be lost.


Oxygene:   method UpdateParamsFromRodl
C#:   void UpdateParamsFromRodl()
VB:   Sub UpdateParamsFromRodl


UpdateParamsFromRodlOperation



Oxygene:   method UpdateParamsFromRodlOperation(operation: RodlOperation)
C#:   void UpdateParamsFromRodlOperation(RodlOperation operation)
VB:   Sub UpdateParamsFromRodlOperation(operation As RodlOperation)


Parameters:

  • operation:


Validate



Oxygene:   method Validate
C#:   void Validate()
VB:   Sub Validate


WriteParameter   protected     (declared in DynamicRequest)



Oxygene:   method WriteParameter(message: IMessage; parameter: DynamicRequestParameter)
C#:   void WriteParameter(IMessage message, DynamicRequestParameter parameter)
VB:   Sub WriteParameter(message As IMessage, parameter As DynamicRequestParameter)


Parameters:

  • message:
  • parameter:


See Also


Product: RemObjects Data Abstract
Available Editions: Data Abstract for .NET, Delphi and Xcode

GlossaryArticlesFeaturesLibrarySamples

Personal tools
Namespaces

Variants
Actions
Navigation
products
platforms
special
Toolbox