T - The entity type@Internal public class DefaultEntityEventContext<T> extends java.lang.Object implements EntityEventContext<T>
EntityEventContext interface.| Constructor and Description |
|---|
DefaultEntityEventContext(RuntimePersistentEntity<T> persistentEntity,
T entity) |
| Modifier and Type | Method and Description |
|---|---|
T |
getEntity() |
RuntimePersistentEntity<T> |
getPersistentEntity() |
<P> void |
setProperty(io.micronaut.core.beans.BeanProperty<T,P> property,
P newValue)
Sets a property to its new value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsEventSystempublic DefaultEntityEventContext(RuntimePersistentEntity<T> persistentEntity, T entity)
@NonNull public T getEntity()
getEntity in interface EntityEventContext<T>public <P> void setProperty(io.micronaut.core.beans.BeanProperty<T,P> property, P newValue)
EntityEventContextEntityEventContext.getEntity() will return the updated entity.setProperty in interface EntityEventContext<T>P - THe property typeproperty - The propertynewValue - The new valuepublic RuntimePersistentEntity<T> getPersistentEntity()
getPersistentEntity in interface PersistenceEventContext<T>RuntimePersistentEntity associated with the entity