Class JpaLazyLoadingListener

java.lang.Object
io.jmix.eclipselink.impl.lazyloading.JpaLazyLoadingListener
All Implemented Interfaces:
DataStoreEventListener, org.springframework.core.Ordered

@Component("eclipselink_JpaLazyLoadingInterceptor") public class JpaLazyLoadingListener extends Object implements DataStoreEventListener
  • Field Details

    • metadata

      @Autowired protected Metadata metadata
    • metadataTools

      @Autowired protected MetadataTools metadataTools
    • entityStates

      @Autowired protected EntityStates entityStates
    • dataManager

      @Autowired protected UnconstrainedDataManager dataManager
    • beanFactory

      @Autowired protected org.springframework.beans.factory.BeanFactory beanFactory
    • fetchPlanRepository

      @Autowired protected FetchPlanRepository fetchPlanRepository
    • extendedEntities

      @Autowired protected ExtendedEntities extendedEntities
    • fetchPlans

      @Autowired protected FetchPlans fetchPlans
  • Constructor Details

    • JpaLazyLoadingListener

      public JpaLazyLoadingListener()
  • Method Details

    • afterEntityLoad

      public void afterEntityLoad(DataStoreAfterEntityLoadEvent event)
      Specified by:
      afterEntityLoad in interface DataStoreEventListener
    • processValueHolders

      public void processValueHolders(Object entity, LoadContext<?> loadContext, FetchPlan fetchPlan)
    • restoreSoftDeletion

      protected void restoreSoftDeletion(Map<String,Serializable> hints)
      Restores SOFT_DELETION hint state if value has been forcefully set in single value property holder
    • processCollectionValueHolder

      protected void processCollectionValueHolder(Object owner, MetaProperty property, io.jmix.eclipselink.impl.lazyloading.LoadOptions loadOptions)
    • processOneToOneValueHolder

      protected void processOneToOneValueHolder(Object owner, MetaProperty property, io.jmix.eclipselink.impl.lazyloading.LoadOptions loadOptions)
    • processManyToOneValueHolder

      protected void processManyToOneValueHolder(Object owner, MetaProperty property, io.jmix.eclipselink.impl.lazyloading.LoadOptions loadOptions)
    • collectFetchPlans

      protected void collectFetchPlans(Object instance, FetchPlan fetchPlan, Map<Object,Set<FetchPlan>> collectedFetchPlans)
    • isPropertyContainedInFetchPlans

      protected boolean isPropertyContainedInFetchPlans(MetaProperty metaProperty, Set<FetchPlan> fetchPlans)
    • isLazyFetchedLocalAttribute

      protected boolean isLazyFetchedLocalAttribute(MetaProperty metaProperty)