ENTITY - the entity typepublic interface EntityListener<ENTITY>
The implementation class must have a public no-arg constructor.
The implementation class must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
default void |
postDelete(ENTITY entity,
PostDeleteContext<ENTITY> context)
Handles the entity after a delete.
|
default void |
postInsert(ENTITY entity,
PostInsertContext<ENTITY> context)
Handles the entity after an insert.
|
default void |
postUpdate(ENTITY entity,
PostUpdateContext<ENTITY> context)
Handles the entity after an update.
|
default void |
preDelete(ENTITY entity,
PreDeleteContext<ENTITY> context)
Handles the entity before a delete.
|
default void |
preInsert(ENTITY entity,
PreInsertContext<ENTITY> context)
Handles the entity before an insert.
|
default void |
preUpdate(ENTITY entity,
PreUpdateContext<ENTITY> context)
Handles the entity before an update.
|
default void preInsert(ENTITY entity, PreInsertContext<ENTITY> context)
entity - the entitycontext - the contextInsert,
BatchInsertdefault void preUpdate(ENTITY entity, PreUpdateContext<ENTITY> context)
entity - the entitycontext - the contextUpdate,
BatchUpdatedefault void preDelete(ENTITY entity, PreDeleteContext<ENTITY> context)
entity - the entitycontext - the contextDelete,
BatchDeletedefault void postInsert(ENTITY entity, PostInsertContext<ENTITY> context)
entity - the entitycontext - the contextInsert,
BatchInsertdefault void postUpdate(ENTITY entity, PostUpdateContext<ENTITY> context)
entity - the entitycontext - the contextUpdate,
BatchUpdatedefault void postDelete(ENTITY entity, PostDeleteContext<ENTITY> context)
entity - the entitycontext - the contextDelete,
BatchDelete