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 Summary
Modifier and TypeFieldDescriptionprotected org.springframework.beans.factory.BeanFactory
protected UnconstrainedDataManager
protected EntityStates
protected ExtendedEntities
protected FetchPlanRepository
protected FetchPlans
protected Metadata
protected MetadataTools
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
collectFetchPlans
(Object instance, FetchPlan fetchPlan, Map<Object, Set<FetchPlan>> collectedFetchPlans) protected boolean
isLazyFetchedLocalAttribute
(MetaProperty metaProperty) protected boolean
isPropertyContainedInFetchPlans
(MetaProperty metaProperty, Set<FetchPlan> fetchPlans) protected void
processCollectionValueHolder
(Object owner, MetaProperty property, io.jmix.eclipselink.impl.lazyloading.LoadOptions loadOptions) protected void
processManyToOneValueHolder
(Object owner, MetaProperty property, io.jmix.eclipselink.impl.lazyloading.LoadOptions loadOptions) protected void
processOneToOneValueHolder
(Object owner, MetaProperty property, io.jmix.eclipselink.impl.lazyloading.LoadOptions loadOptions) void
processValueHolders
(Object entity, LoadContext<?> loadContext, FetchPlan fetchPlan) protected void
restoreSoftDeletion
(Map<String, Serializable> hints) Restores SOFT_DELETION hint state if value has been forcefully set in single value property holderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.core.datastore.DataStoreEventListener
beforeEntityCount, beforeEntityLoad, beforeEntitySave, beforeValueLoad, entityDeleting, entityLoading, entityReload, entitySaving, getOrder
-
Field Details
-
metadata
-
metadataTools
-
entityStates
-
dataManager
-
beanFactory
@Autowired protected org.springframework.beans.factory.BeanFactory beanFactory -
fetchPlanRepository
-
extendedEntities
-
fetchPlans
-
-
Constructor Details
-
JpaLazyLoadingListener
public JpaLazyLoadingListener()
-
-
Method Details
-
afterEntityLoad
- Specified by:
afterEntityLoad
in interfaceDataStoreEventListener
-
processValueHolders
-
restoreSoftDeletion
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
-
isPropertyContainedInFetchPlans
protected boolean isPropertyContainedInFetchPlans(MetaProperty metaProperty, Set<FetchPlan> fetchPlans) -
isLazyFetchedLocalAttribute
-