Table of Contents

TXDataModuleEvents Class

Container of the server-side events of an XData server module, available through its TXDataServerModule.Events property.

Remarks

All events are multicast: call Subscribe on an event to add a listener without replacing listeners added elsewhere in the application. Listeners should be subscribed before the module is added to the dispatcher and the server is started.

Syntax

Unit: XData.Module.Events

TXDataModuleEvents = class(TObject);

Properties

Name Description
OnEntityDeleted Occurs right after an entity is deleted from the database.
OnEntityDeleting Occurs right before an entity is deleted from the database, in the middle of the database transaction.
OnEntityGet Occurs after an entity is retrieved, right before it is sent to the client.
OnEntityInserted Occurs right after an entity is inserted in the database.
OnEntityInserting Occurs right before an entity is inserted in the database, in the middle of the database transaction.
OnEntityList Occurs when the client queries an entity collection, after the criteria is built from the request and right before it is executed.
OnEntityModified Occurs right after an entity is updated in the database.
OnEntityModifying Occurs right before an entity is updated in the database, in the middle of the database transaction.
OnManagerCreate Occurs when an object manager is created to process a request, allowing it to be configured, for example to enable filters.
OnModuleException Occurs when an exception is raised while processing a request, allowing the error response to be customized.