company logo

ObjectSpace :: contextEventHandling - Context event handling property

The property indicates, whether context event handling is enabled ( true ) or not ( false ). When event handling is disabled, events are not handled by any context event handlers. The property is different from the BaseContext ::enabled property, which only indicates the effect of object space context handlers. It is also different from the ObjectSpace ::eventHandling property, which only affects application event handling.

Notes:

Context event handlers are event handlers typically implemented in type or property context classes in order to handle several database events (property or instance state transitions).

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false .

Implementation overview

Implementation details

  1. Is context event handling enabled?
    bool ObjectSpace  :: contextEventHandling (  )

    The function returns, whether context event handling is enabled ( true ) or not ( false ).

  2. to list
  3. Change context event handling state
    bool ObjectSpace  :: contextEventHandling ( bool bEnable )

    The function allows disabling handling database events by implemented context class event handlers. Passing false in bEnable will disable context event handling. Passing true will enabling context event handling.

    Notes:

    Disabling context event handling for the object space means disabling context handler for all subordinated property handles.

    • bEnable - Enable resource

      In order to enable the referenced resource true should be passed. Passing false will disable the resource.

  4. to list