Package io.jmix.core.event
Class EntitySavingEvent<E>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
io.jmix.core.event.AbstractEntityEvent
io.jmix.core.event.EntitySavingEvent<E>
- Type Parameters:
E
- entity type
- All Implemented Interfaces:
Serializable
,org.springframework.core.ResolvableTypeProvider
A Spring application event which is sent when the entity is saved to the data store.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionEntitySavingEvent
(Object source, MetaClass metaClass, E entity, boolean isNewEntity) -
Method Summary
Modifier and TypeMethodDescriptionReturns the entity being saved.boolean
True if the entity is new, i.e.toString()
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
-
Constructor Details
-
EntitySavingEvent
-
-
Method Details
-
getEntity
Returns the entity being saved. -
isNewEntity
public boolean isNewEntity()True if the entity is new, i.e. it is being created in the data store. -
toString
- Overrides:
toString
in classEventObject
-