Class DynamicValuesChangedEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
io.jmix.dynmodel.DynamicValuesChangedEvent
All Implemented Interfaces:
Serializable

@NullMarked public class DynamicValuesChangedEvent extends org.springframework.context.ApplicationEvent
Published before commit when the dynamic attribute values of a static entity are stored, carrying the names of the attributes whose values changed. Saving a static entity where only dynamic values changed produces no EntityChangedEvent, so listeners that need to react to dynamic value changes subscribe to this event instead.
See Also:
  • Field Details

    • entityId

      protected final Id<?> entityId
    • metaClass

      protected final MetaClass metaClass
    • changedAttributes

      protected final Set<String> changedAttributes
  • Constructor Details

    • DynamicValuesChangedEvent

      public DynamicValuesChangedEvent(Object source, Id<?> entityId, MetaClass metaClass, Set<String> changedAttributes)
  • Method Details

    • getEntityId

      public Id<?> getEntityId()
      Returns:
      id of the saved static entity
    • getMetaClass

      public MetaClass getMetaClass()
      Returns:
      meta class of the saved static entity
    • getChangedAttributes

      public Set<String> getChangedAttributes()
      Returns:
      names of the dynamic attributes whose values were created, updated or cleared