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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.beans.factory.BeanFactoryprotected UnconstrainedDataManagerprotected EntityStatesprotected ExtendedEntitiesprotected FetchPlanRepositoryprotected FetchPlansprotected Metadataprotected MetadataToolsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidcollectFetchPlans(Object instance, FetchPlan fetchPlan, Map<Object, Set<FetchPlan>> collectedFetchPlans) protected booleanisLazyFetchedLocalAttribute(MetaProperty metaProperty) protected booleanisPropertyContainedInFetchPlans(MetaProperty metaProperty, Set<FetchPlan> fetchPlans) protected voidprocessCollectionValueHolder(Object owner, MetaProperty property, io.jmix.eclipselink.impl.lazyloading.LoadOptions loadOptions) protected voidprocessManyToOneValueHolder(Object owner, MetaProperty property, io.jmix.eclipselink.impl.lazyloading.LoadOptions loadOptions) protected voidprocessOneToOneValueHolder(Object owner, MetaProperty property, io.jmix.eclipselink.impl.lazyloading.LoadOptions loadOptions) voidprocessValueHolders(Object entity, LoadContext<?> loadContext, FetchPlan fetchPlan) protected voidrestoreSoftDeletion(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, waitMethods 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:
afterEntityLoadin 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
-