Datasnap.Provider.TCustomProvider.AfterExecute

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AfterExecute: TRemoteEvent read FAfterExecute write FAfterExecute;

C++

__property Datasnap::Dbclient::TRemoteEvent AfterExecute = {read=FAfterExecute, write=FAfterExecute};

Properties

Type Visibility Source Unit Parent
event protected
Datasnap.Provider.pas
Datasnap.Provider.hpp
Datasnap.Provider TCustomProvider

Description

Occurs after the provider passes an execute command to its dataset.

Write an AfterExecute event handler to return custom information to a client dataset after executing a query or stored procedure. AfterExecute is part of the mechanism by which a client dataset and a provider communicate information when executing queries or stored procedures that do not return a cursor. When the provider is part of a stateless application server, this mechanism allows the provider and the client dataset to communicate persistent state information.

When the client dataset calls the AS_Execute method of the IAppServer interface, the following events occur:

1.The provider receives a BeforeExecute event, where it can respond to or change custom information that the client dataset sends.

2.The provider dispatches its Execute method to execute a query or stored procedure.

3.The provider receives an AfterExecute event, where it can encode custom information into its OwnerData parameter or respond to information from the BeforeExecute event handler.

4.The client dataset receives an AfterExecute event, where it can respond to the custom information returned by the provider in its AfterExecute event handler.

AfterExecute is of type Datasnap.DBClient.TRemoteEvent.


See Also