Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Broadcaster

Broadcaster provides a helper methods to broadcast events to the subscribers.

Hierarchy

  • Broadcaster

Index

Constructors

constructor

Properties

Private queryRunner

queryRunner: QueryRunner

Methods

broadcastAfterInsertEvent

  • Broadcasts "AFTER_INSERT" event. After insert event is executed after entity is being persisted to the database for the first time. All subscribers and entity listeners who listened to this event will be executed at this point. Subscribers and entity listeners can return promises, it will wait until they are resolved.

    Note: this method has a performance-optimized code organization, do not change code structure.

    Parameters

    Returns void

broadcastAfterRemoveEvent

  • Broadcasts "AFTER_REMOVE" event. After remove event is executed after entity is being removed from the database. All subscribers and entity listeners who listened to this event will be executed at this point. Subscribers and entity listeners can return promises, it will wait until they are resolved.

    Note: this method has a performance-optimized code organization, do not change code structure.

    Parameters

    Returns void

broadcastAfterUpdateEvent

  • Broadcasts "AFTER_UPDATE" event. After update event is executed after entity is being updated in the database. All subscribers and entity listeners who listened to this event will be executed at this point. Subscribers and entity listeners can return promises, it will wait until they are resolved.

    Note: this method has a performance-optimized code organization, do not change code structure.

    Parameters

    Returns void

broadcastBeforeInsertEvent

  • Broadcasts "BEFORE_INSERT" event. Before insert event is executed before entity is being inserted to the database for the first time. All subscribers and entity listeners who listened to this event will be executed at this point. Subscribers and entity listeners can return promises, it will wait until they are resolved.

    Note: this method has a performance-optimized code organization, do not change code structure.

    Parameters

    Returns void

broadcastBeforeRemoveEvent

  • Broadcasts "BEFORE_REMOVE" event. Before remove event is executed before entity is being removed from the database. All subscribers and entity listeners who listened to this event will be executed at this point. Subscribers and entity listeners can return promises, it will wait until they are resolved.

    Note: this method has a performance-optimized code organization, do not change code structure.

    Parameters

    Returns void

broadcastBeforeUpdateEvent

  • Broadcasts "BEFORE_UPDATE" event. Before update event is executed before entity is being updated in the database. All subscribers and entity listeners who listened to this event will be executed at this point. Subscribers and entity listeners can return promises, it will wait until they are resolved.

    Note: this method has a performance-optimized code organization, do not change code structure.

    Parameters

    Returns void

broadcastLoadEventsForAll

  • Broadcasts "AFTER_LOAD" event for all given entities, and their sub-entities. After load event is executed after entity has been loaded from the database. All subscribers and entity listeners who listened to this event will be executed at this point. Subscribers and entity listeners can return promises, it will wait until they are resolved.

    Note: this method has a performance-optimized code organization, do not change code structure.

    Parameters

    Returns void

Protected isAllowedSubscriber

Generated using TypeDoc