Interface Deletor<P,​E>

Type Parameters:
P - the parent of the entity to delete (if the entity has no parent says is not in a association) of another entity, just used the Void type).
E - the type of the entity to delete.

public interface Deletor<P,​E>
A simple contract to hook the deletion of an entity.
Author:
tchemit <chemit@codelutin.com>
  • Method Summary

    Modifier and Type Method Description
    void delete​(TopiaContext tx, P parent, E from)
    Hook to delete an entity from a prent entity.
  • Method Details

    • delete

      void delete​(TopiaContext tx, P parent, E from)
      Hook to delete an entity from a prent entity.
      Parameters:
      tx - current transaction
      parent - the parent of the entity
      from - the entity to delete.