Title_Documentation

Documentation

Contact Us

Knowledge Base Display

Crud Pre/Post Actions

As mentioned earlier, HyperIoT Framework allows you to be able to define custom logic hooked into the persistence cycle of any entity. With Pre/Posts Crud Actions, it is possible to register a component that can execute its own logic before or after ( as needed) an entity is saved, modified, or deleted.

This mechanism, as an initial choice, is embedded within the entity transaction itself. For this reason, it will be up to the developer to choose, in the event of an exception, whether to propagate it to cause the entire transaction to fail or to handle it locally so that the main entity transaction terminates correctly.

Persitence Class Hierarchy Previous

Child Articles (9)

  • PreSave Action

    In HyperIoTPreSaveAction, the execute method is executed just before the entity is saved within the database. Pre Save Action Class Hierarchy To define a custom behavior hooked to a pre-save...

  • PreRemove Action

    In HyperIoTPreRemoveAction, the execute method is executed just before the entity is saved within the database. Pre Save Action Class Hierarchy To define a custom behavior hooked to a pre-remove...

  • PreUpdate Action

    In HyperIoTPreUpdateAction, the execute method is executed just before the entity is saved within the database. Pre Save Action Class Hierarchy To define a custom behavior hooked to a pre-update...

  • PreUpdate Detailed Action

    In HyperIoTPreUpdateDetailedAction the execute method is executed just before the entity is saved within the database. Pre Save Action Class Hierarchy To define a custom behavior hooked to a...

  • PostSave Action

    In HyperIoTPostSaveAction, the execute method is executed just before the entity is saved within the database. Pre Save Action Class Hierarchy To define a custom behavior hooked to a post-save...

  • PostRemove Action

    In HyperIoTPostRemoveAction, the execute method is executed just before the entity is saved within the database. Pre Save Action Class Hierarchy To define a custom behavior hooked to a post-remove...

  • PostUpdate Action

    In HyperIoTUpdateAction, the execute method is executed just before the entity is saved within the database. Pre Save Action Class Hierarchy To define a custom behavior hooked to a post-update...

  • PostUpdate Detailed Action

    In HyperIoTPreUpdateDetailedAction the execute method is executed just before the entity is saved within the database. Pre Save Action Class Hierarchy To define a custom behavior hooked to a...

  • Managing Delete Cascade On External Domains

    Pre/Post Actions can be very useful for implementing cascade logic between modules inherent in different domains. It has been mentioned several times that to best implement domain driven design...