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
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected ClassManagerprotected ComponentLoader.Contextprotected FetchPlanLoaderprotected FetchPlanRepositoryprotected static final Stringprotected LoaderResolverprotected LoaderSupportprotected Metadataprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ComponentLoader.ComponentContextprotected 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
-
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:
setApplicationContextin 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) LoadsitemsQueryelement 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) LoadsitemsQueryelement 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) LoadsitemsQueryelement 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
-
getComponentContext
-