Class DataLoaderSupport
java.lang.Object
io.jmix.flowui.xml.layout.support.DataLoaderSupport
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware,- org.springframework.context.ApplicationContextAware
@Component("flowui_DataLoaderSupport")
@Scope("prototype")
public class DataLoaderSupport
extends Object
implements org.springframework.context.ApplicationContextAware
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected ClassManagerprotected ComponentLoader.Contextprotected FetchPlanLoaderprotected FetchPlanRepositoryprotected static final Stringprotected LoaderResolverprotected LoaderSupportprotected Metadataprotected static final String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringgetParentDataContainer(org.dom4j.Element element) protected StringgetSearchString(com.vaadin.flow.data.provider.Query<?, String> query, String searchStringFormat, boolean escapeValue) voidloadContainer(SupportsValueSource<?> component, org.dom4j.Element element) loadContainer(org.dom4j.Element element, String property) voidloadData(SupportsValueSource<?> component, org.dom4j.Element element) voidloadEntityItemsQuery(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element element) LoadsitemsQueryelement that contains a query to load entities only.protected voidloadEntityItemsQueryInternal(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element itemsElement, Class<?> entityClass) protected BooleanloadEscapeValueForLike(org.dom4j.Element itemsElement) protected FetchPlanloadFetchPlan(org.dom4j.Element itemsElement, Class<?> entityClass) protected FetchPlanloadInlineFetchPlan(org.dom4j.Element fetchPlanElement, Class<?> entityClass) voidloadItems(com.vaadin.flow.component.Component component, org.dom4j.Element element) <E> voidloadItemsContainer(SupportsItemsContainer<E> component, org.dom4j.Element element) protected <E> Optional<CollectionContainer<E>>loadItemsContainer(org.dom4j.Element element) <T> voidloadItemsEnum(SupportsItemsEnum<T> component, org.dom4j.Element element) loadItemsEnum(org.dom4j.Element element) voidloadItemsQuery(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element element) LoadsitemsQueryelement that may contain a query to load either entities or scalar values.protected StringloadQuery(com.vaadin.flow.component.Component component, org.dom4j.Element itemsElement) protected StringloadSearchStringFormat(org.dom4j.Element itemsElement) voidloadValueItemsQuery(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element element) LoadsitemsQueryelement that contains a query to load scalar values only.protected voidloadValueItemsQueryInternal(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element itemsElement) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetClassManager(ClassManager classManager) voidsetFetchPlanLoader(FetchPlanLoader fetchPlanLoader) voidsetFetchPlanRepository(FetchPlanRepository fetchPlanRepository) voidsetLoaderResolver(LoaderResolver loaderResolver) voidsetLoaderSupport(LoaderSupport loaderSupport) voidsetMetadata(Metadata metadata) 
- 
Field Details- 
ITEMS_QUERY_ELEMENT- See Also:
 
- 
VALUE_PARAMETER- See Also:
 
- 
context
- 
applicationContextprotected org.springframework.context.ApplicationContext applicationContext
- 
loaderResolver
- 
classManager
- 
loaderSupport
- 
metadata
- 
fetchPlanLoader
- 
fetchPlanRepository
 
- 
- 
Constructor Details- 
DataLoaderSupport
 
- 
- 
Method Details- 
setApplicationContextpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
- setApplicationContextin interface- org.springframework.context.ApplicationContextAware
 
- 
setLoaderResolver
- 
setClassManager
- 
setLoaderSupport
- 
setMetadata
- 
setFetchPlanLoader
- 
setFetchPlanRepository
- 
loadData
- 
loadContainer
- 
loadContainerpublic Optional<InstanceContainer<?>> loadContainer(org.dom4j.Element element, @Nullable String property) 
- 
loadItemspublic void loadItems(com.vaadin.flow.component.Component component, org.dom4j.Element element) 
- 
loadItemsQuerypublic void loadItemsQuery(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element element) LoadsitemsQueryelement that may contain a query to load either entities or scalar values.- Parameters:
- component- a component to set a result
- element- an xml definition
- See Also:
 
- 
loadEntityItemsQuerypublic void loadEntityItemsQuery(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element element) LoadsitemsQueryelement that contains a query to load entities only.- Parameters:
- component- a component to set a result
- element- an xml definition
- See Also:
 
- 
loadEntityItemsQueryInternalprotected void loadEntityItemsQueryInternal(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element itemsElement, Class<?> entityClass) 
- 
loadValueItemsQuerypublic void loadValueItemsQuery(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element element) LoadsitemsQueryelement that contains a query to load scalar values only.- Parameters:
- component- a component to set a result
- element- an xml definition
- See Also:
 
- 
loadValueItemsQueryInternalprotected void loadValueItemsQueryInternal(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element itemsElement) 
- 
loadQueryprotected String loadQuery(com.vaadin.flow.component.Component component, org.dom4j.Element itemsElement) 
- 
loadSearchStringFormat
- 
loadEscapeValueForLike
- 
loadFetchPlan
- 
loadInlineFetchPlan
- 
getSearchString
- 
loadItemsContainer
- 
loadItemsContainer
- 
loadItemsEnum
- 
loadItemsEnum
- 
getParentDataContainer
 
-