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 theVoidtype).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 TypeMethodDescriptionvoiddelete(TopiaContext tx, P parent, E from) Hook to delete an entity from a prent entity.
-
Method Details
-
delete
Hook to delete an entity from a prent entity.- Parameters:
tx- current transactionparent- the parent of the entityfrom- the entity to delete.
-