Package io.jmix.restds.event
Class RestEntitySavedEvent<E>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
io.jmix.core.event.AbstractEntityEvent
io.jmix.restds.event.RestEntitySavedEvent<E>
- Type Parameters:
E
- entity type
- All Implemented Interfaces:
Serializable
,org.springframework.core.ResolvableTypeProvider
A Spring application event which is sent after the entity is saved to the REST data store.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionRestEntitySavedEvent
(Object source, MetaClass metaClass, E savedEntity, E returnedEntity, boolean isNewEntity) -
Method Summary
Modifier and TypeMethodDescriptionThe entity instance returned from the data store after saving.The saved entity instance with the state right before sending to the data store.boolean
Methods inherited from class io.jmix.core.event.AbstractEntityEvent
getResolvableType
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
RestEntitySavedEvent
-
-
Method Details
-
getSavedEntity
The saved entity instance with the state right before sending to the data store. -
getReturnedEntity
The entity instance returned from the data store after saving. -
isNewEntity
public boolean isNewEntity()
-