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
FieldsModifier and TypeFieldDescriptionprotected EntityStatesprotected FetchPlanRepositoryprotected Metadataprotected MetadataToolsprotected StoreAwareLocator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFetch instance by fetch plan.voidFetch instance by fetch plan.protected voidfetch(Object entity, FetchPlan fetchPlan, Map<Object, Set<FetchPlan>> visited, boolean optimizeForDetached) voidFetch instance by fetch plan.voidFetch instance by fetch plan.protected voidfetchReloaded(Object entity, FetchPlan fetchPlan, Map<Object, Set<FetchPlan>> visited, boolean optimizeForDetached, Consumer<Object> managedEntityConsumer) protected booleanisLazyFetchedLocalAttribute(MetaProperty metaProperty) protected booleanneedReloading(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
-