DataEventListener

DataEventListener

Represents a data model's listener

Constructor

(abstract) new DataEventListener()

Source:

Methods

afterExecute(e, cb)

Occurs after executing a data operation. The event arguments contain the executed query.
Parameters:
Name Type Description
e DataEventArgs An object that represents the event arguments passed to this operation.
cb function A callback function that should be called at the end of this operation. The first argument may be an error if any occured.
Source:

afterRemove(e, cb)

Occurs after removing a data object.
Parameters:
Name Type Description
e DataEventArgs An object that represents the event arguments passed to this operation.
cb function A callback function that should be called at the end of this operation. The first argument may be an error if any occured.
Source:

afterSave(e, cb)

Occurs after creating or updating a data object.
Parameters:
Name Type Description
e DataEventArgs An object that represents the event arguments passed to this operation.
cb function A callback function that should be called at the end of this operation. The first argument may be an error if any occured.
Source:

beforeExecute(e, cb)

Occurs before executing a data operation. The event arguments contain the query that is going to be executed.
Parameters:
Name Type Description
e DataEventArgs An object that represents the event arguments passed to this operation.
cb function A callback function that should be called at the end of this operation. The first argument may be an error if any occured.
Source:

beforeRemove(e, cb) → {DataEventListener}

Occurs before removing a data object.
Parameters:
Name Type Description
e DataEventArgs An object that represents the event arguments passed to this operation.
cb function A callback function that should be called at the end of this operation. The first argument may be an error if any occured.
Source:
Returns:
Type
DataEventListener

beforeSave(e, cb)

Occurs before creating or updating a data object.
Parameters:
Name Type Description
e DataEventArgs An object that represents the event arguments passed to this operation.
cb function A callback function that should be called at the end of this operation. The first argument may be an error if any occured.
Source: