Interface PostPersistEventListener<T>
- Type Parameters:
T- The entity type
- All Superinterfaces:
EntityEventListener<T>, EventListener, io.micronaut.core.order.Ordered
Functional version or
PostPersist event handlers.- Since:
- 2.3.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from interface EntityEventListener
NOOPFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptiondefault voidpostPersist(EntityEventContext<T> context) A post-persist hook.voidpostPersist(T entity) A post-persist hook.default booleansupports(RuntimePersistentEntity<T> entity, Class<? extends Annotation> eventType) Allows including or excluding a listener for a specific entity.Methods inherited from interface EntityEventListener
postLoad, postRemove, postUpdate, prePersist, preQuery, preRemove, preUpdateMethods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Method Details
-
postPersist
A post-persist hook. Implementors can return false to evict the operation.- Parameters:
entity- The entity
-
postPersist
Description copied from interface:EntityEventListenerA post-persist hook. Executed once the object has been persisted.- Specified by:
postPersistin interfaceEntityEventListener<T>- Parameters:
context- The context object
-
supports
Description copied from interface:EntityEventListenerAllows including or excluding a listener for a specific entity.- Specified by:
supportsin interfaceEntityEventListener<T>- Parameters:
entity- The entityeventType- The event type- Returns:
- True if it is supported
-