Package io.jmix.data.impl
Class EntityFetcher
java.lang.Object
io.jmix.data.impl.EntityFetcher
Fetches entities by fetch plans by accessing reference attributes.
-
Field Summary
Modifier and TypeFieldDescriptionprotected EntityStates
protected FetchPlanRepository
protected Metadata
protected MetadataTools
protected StoreAwareLocator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Fetch instance by fetch plan.void
Fetch instance by fetch plan.protected void
fetch
(Object entity, FetchPlan fetchPlan, Map<Object, Set<FetchPlan>> visited, boolean optimizeForDetached) void
Fetch instance by fetch plan.void
Fetch instance by fetch plan.protected void
fetchReloaded
(Object entity, FetchPlan fetchPlan, Map<Object, Set<FetchPlan>> visited, boolean optimizeForDetached, Consumer<Object> managedEntityConsumer) protected boolean
isLazyFetchedLocalAttribute
(MetaProperty metaProperty) protected boolean
needReloading
(Object entity, FetchPlan fetchPlan)
-
Field Details
-
metadata
-
fetchPlanRepository
-
entityStates
-
metadataTools
-
storeAwareLocator
-
-
Constructor Details
-
EntityFetcher
public EntityFetcher()
-
-
Method Details
-
fetch
Fetch instance by fetch plan.- Parameters:
fetchPlan
- if null, nothing happens
-
fetch
Fetch instance by fetch plan.- Parameters:
fetchPlanName
- if null, nothing happens
-
fetch
Fetch instance by fetch plan.- Parameters:
fetchPlan
- if null, nothing happensoptimizeForDetached
- if true, detached objects encountered in the graph will be first checked whether all required attributes are already loaded, and reloaded only when needed. If the argument is false, all detached objects are reloaded anyway.
-
fetch
Fetch instance by fetch plan.- Parameters:
fetchPlanName
- if null, nothing happensoptimizeForDetached
- if true, detached objects encountered in the graph will be first checked whether all required attributes are already loaded, and reloaded only when needed. If the argument is false, all detached objects are reloaded anyway.
-
fetch
-
fetchReloaded
-
needReloading
-
isLazyFetchedLocalAttribute
-