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

public class EntitySavingEvent<E> extends AbstractEntityEvent
A Spring application event which is sent when the entity is saved to the data store.
See Also:
  • Constructor Details

    • EntitySavingEvent

      public EntitySavingEvent(Object source, MetaClass metaClass, E entity, boolean isNewEntity)
  • Method Details

    • getEntity

      public E 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

      public String toString()
      Overrides:
      toString in class EventObject