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 SummaryFieldsModifier and TypeFieldDescriptionprotected EntityStatesprotected FetchPlanRepositoryprotected Metadataprotected MetadataToolsprotected StoreAwareLocator
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
EntityFetcherpublic EntityFetcher()
 
- 
- 
Method Details- 
fetchFetch instance by fetch plan.- Parameters:
- fetchPlan- if null, nothing happens
 
- 
fetchFetch instance by fetch plan.- Parameters:
- fetchPlanName- if null, nothing happens
 
- 
fetchFetch instance by fetch plan.- Parameters:
- fetchPlan- if null, nothing happens
- optimizeForDetached- 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.
 
- 
fetchFetch instance by fetch plan.- Parameters:
- fetchPlanName- if null, nothing happens
- optimizeForDetached- 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
 
-