Package io.micronaut.data.event
Interface EntityEventContext<T>
- Type Parameters:
- T- The generic type of the entity
- All Superinterfaces:
- PersistenceEventContext<T>
- All Known Implementing Classes:
- DefaultEntityEventContext
Context object for event receivers.
- Since:
- 2.3.0
- Author:
- graemerocher
- 
Method SummaryModifier and TypeMethodDescription<P> voidsetProperty(io.micronaut.core.beans.BeanProperty<T, P> property, P newValue) Sets a property to its new value.default booleanMethods inherited from interface io.micronaut.data.event.PersistenceEventContextgetPersistentEntity
- 
Method Details- 
getEntity- Returns:
- The entity associated with the event.
 
- 
setPropertySets a property to its new value. If the property is immutable then the copy-constructor will be used andgetEntity()will return the updated entity.- Type Parameters:
- P- THe property type
- Parameters:
- property- The property
- newValue- The new value
 
- 
supportsEventSystemdefault boolean supportsEventSystem()- Returns:
- Does the underlying persistence engine have its own event system.
 
 
-