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 Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected ClassManager
protected ComponentLoader.Context
protected FetchPlanLoader
protected FetchPlanRepository
protected static final String
protected LoaderResolver
protected LoaderSupport
protected Metadata
protected static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getParentDataContainer
(org.dom4j.Element element) protected String
getSearchString
(com.vaadin.flow.data.provider.Query<?, String> query, String searchStringFormat, boolean escapeValue) void
loadContainer
(SupportsValueSource<?> component, org.dom4j.Element element) loadContainer
(org.dom4j.Element element, String property) void
loadData
(SupportsValueSource<?> component, org.dom4j.Element element) void
loadEntityItemsQuery
(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element element) LoadsitemsQuery
element that contains a query to load entities only.protected void
loadEntityItemsQueryInternal
(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element itemsElement, Class<?> entityClass) protected Boolean
loadEscapeValueForLike
(org.dom4j.Element itemsElement) protected FetchPlan
loadFetchPlan
(org.dom4j.Element itemsElement, Class<?> entityClass) protected FetchPlan
loadInlineFetchPlan
(org.dom4j.Element fetchPlanElement, Class<?> entityClass) void
loadItems
(com.vaadin.flow.component.Component component, org.dom4j.Element element) <E> void
loadItemsContainer
(SupportsItemsContainer<E> component, org.dom4j.Element element) protected <E> Optional<CollectionContainer<E>>
loadItemsContainer
(org.dom4j.Element element) <T> void
loadItemsEnum
(SupportsItemsEnum<T> component, org.dom4j.Element element) loadItemsEnum
(org.dom4j.Element element) void
loadItemsQuery
(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element element) LoadsitemsQuery
element that may contain a query to load either entities or scalar values.protected String
loadQuery
(com.vaadin.flow.component.Component component, org.dom4j.Element itemsElement) protected String
loadSearchStringFormat
(org.dom4j.Element itemsElement) void
loadValueItemsQuery
(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element element) LoadsitemsQuery
element that contains a query to load scalar values only.protected void
loadValueItemsQueryInternal
(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element itemsElement) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setClassManager
(ClassManager classManager) void
setFetchPlanLoader
(FetchPlanLoader fetchPlanLoader) void
setFetchPlanRepository
(FetchPlanRepository fetchPlanRepository) void
setLoaderResolver
(LoaderResolver loaderResolver) void
setLoaderSupport
(LoaderSupport loaderSupport) void
setMetadata
(Metadata metadata)
-
Field Details
-
ITEMS_QUERY_ELEMENT
- See Also:
-
VALUE_PARAMETER
- See Also:
-
context
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
loaderResolver
-
classManager
-
loaderSupport
-
metadata
-
fetchPlanLoader
-
fetchPlanRepository
-
-
Constructor Details
-
DataLoaderSupport
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
setLoaderResolver
-
setClassManager
-
setLoaderSupport
-
setMetadata
-
setFetchPlanLoader
-
setFetchPlanRepository
-
loadData
-
loadContainer
-
loadContainer
public Optional<InstanceContainer<?>> loadContainer(org.dom4j.Element element, @Nullable String property) -
loadItems
public void loadItems(com.vaadin.flow.component.Component component, org.dom4j.Element element) -
loadItemsQuery
public void loadItemsQuery(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element element) LoadsitemsQuery
element that may contain a query to load either entities or scalar values.- Parameters:
component
- a component to set a resultelement
- an xml definition- See Also:
-
loadEntityItemsQuery
public void loadEntityItemsQuery(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element element) LoadsitemsQuery
element that contains a query to load entities only.- Parameters:
component
- a component to set a resultelement
- an xml definition- See Also:
-
loadEntityItemsQueryInternal
protected void loadEntityItemsQueryInternal(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element itemsElement, Class<?> entityClass) -
loadValueItemsQuery
public void loadValueItemsQuery(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element element) LoadsitemsQuery
element that contains a query to load scalar values only.- Parameters:
component
- a component to set a resultelement
- an xml definition- See Also:
-
loadValueItemsQueryInternal
protected void loadValueItemsQueryInternal(SupportsItemsFetchCallback<?, String> component, org.dom4j.Element itemsElement) -
loadQuery
protected String loadQuery(com.vaadin.flow.component.Component component, org.dom4j.Element itemsElement) -
loadSearchStringFormat
-
loadEscapeValueForLike
-
loadFetchPlan
-
loadInlineFetchPlan
-
getSearchString
-
loadItemsContainer
-
loadItemsContainer
-
loadItemsEnum
-
loadItemsEnum
-
getParentDataContainer
-