new EventBuffer(database, context)
Parameters:
| Name | Type | Description |
|---|---|---|
database |
olympe.dc.db.Database | |
context |
olympe.df.ExecutionContext |
Methods
-
<package> addCallback(id, callback)
-
Parameters:
Name Type Description idstring callbackfunction -
<package> commitAndClear()
-
Loop over all buffered events, process the callbacks related to them and clear the buffer at the end.
-
<package> dispatchPropertyEvent(tag, property, value, isDefault)
-
Parameters:
Name Type Argument Description tagstring propertystring value* <nullable>
isDefaultboolean -
<package> dispatchRelationEvent(tag, relation, direction, relatedTag, added)
-
Parameters:
Name Type Description tagstring relationstring directionstring relatedTagstring addedboolean -
<package> isDeleteEvent(tag)
-
Return true if the event associated to tag is a delete event
Parameters:
Name Type Description tagstring Returns:
- Type
- boolean
-
<package> removeCallback(id)
-
Parameters:
Name Type Description idstring -
<package> setExistence(tag, exist)
-
Parameters:
Name Type Description tagstring existboolean
Olympe SDK