Class EntityTrackingListener

java.lang.Object
io.jmix.search.listener.EntityTrackingListener
All Implemented Interfaces:
DataStoreCustomizer, DataStoreEventListener, org.springframework.core.Ordered

@Component("search_EntityTrackingListener") public class EntityTrackingListener extends Object implements DataStoreEventListener, DataStoreCustomizer
  • Field Details

  • Constructor Details

    • EntityTrackingListener

      public EntityTrackingListener()
  • Method Details

    • customize

      public void customize(DataStore dataStore)
      Specified by:
      customize in interface DataStoreCustomizer
    • beforeEntitySave

      public void beforeEntitySave(DataStoreBeforeEntitySaveEvent event)
      Specified by:
      beforeEntitySave in interface DataStoreEventListener
    • onEntityChangedBeforeCommit

      @EventListener public void onEntityChangedBeforeCommit(EntityChangedEvent<?> event)
    • processRemovedEntity

      protected void processRemovedEntity(Object removedEntity)
    • processEntityChangedEvent

      protected void processEntityChangedEvent(EntityChangedEvent<?> event)
    • isUpdateRequired

      protected boolean isUpdateRequired(Class<?> entityClass, AttributeChanges changes)
    • isChangeTrackingEnabled

      protected boolean isChangeTrackingEnabled()
    • isRemovedEntityProcessingRequired

      protected boolean isRemovedEntityProcessingRequired(Object entity)
    • isEntityChangedEventProcessingRequired

      protected boolean isEntityChangedEventProcessingRequired(EntityChangedEvent<?> event)
    • isEntityClassCanBeProcessed

      protected boolean isEntityClassCanBeProcessed(Class<?> entityClass)
    • getEntityIdsDependentOnUpdatedEntity

      protected Set<Id<?>> getEntityIdsDependentOnUpdatedEntity(Id<?> updatedEntityId, MetaClass metaClass, AttributeChanges changes)
    • getEntityIdsDependentOnRemovedEntity

      protected Set<Id<?>> getEntityIdsDependentOnRemovedEntity(Id<?> removedEntityId, MetaClass metaClass)
    • loadDependentEntityIds

      protected Set<Id<?>> loadDependentEntityIds(Id<?> targetEntityId, MetaClass targetMetaClass, Map<MetaClass,Set<MetaPropertyPath>> dependencyMetaData)
    • performLoadingDependentEntityIds

      protected List<Id<?>> performLoadingDependentEntityIds(MetaClass metaClass, io.jmix.search.listener.EntityTrackingListener.DependentEntitiesQuery dependentEntitiesQuery)