Package io.jmix.dynattrflowui.impl
Class AttributeOptionsLoaderImpl
java.lang.Object
io.jmix.dynattrflowui.impl.AttributeOptionsLoaderImpl
- All Implemented Interfaces:
AttributeOptionsLoader
@Component("dynat_AttributeOptionsLoader")
public class AttributeOptionsLoaderImpl
extends Object
implements AttributeOptionsLoader
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
protected static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final Pattern
protected DataManager
protected static final String
protected static final String
protected final Map<String,
AttributeOptionsLoaderImpl.OptionsLoaderStrategy> protected Metadata
protected org.springframework.scripting.ScriptEvaluator
protected StoreAwareLocator
-
Constructor Summary
ConstructorDescriptionAttributeOptionsLoaderImpl
(StoreAwareLocator storeAwareLocator, DataManager dataManager, Metadata metadata, org.springframework.scripting.ScriptEvaluator scriptEvaluator) -
Method Summary
Modifier and TypeMethodDescriptionprotected LoadContext.Query
buildJpqlQuery
(String script, Map<String, Object> params) protected AttributeOptionsLoaderImpl.SqlQuery
buildSqlQuery
(String script, Map<String, Object> params) protected List<?>
executeGroovyScript
(Object entity, AttributeDefinition attribute, String script) protected List<?>
executeJpql
(Object entity, AttributeDefinition attribute, String script) protected List<?>
executeSql
(Object entity, AttributeDefinition attribute, String script) protected Object
getQueryParameterValue
(String name, Map<String, Object> params) void
init()
List<?>
loadOptions
(Object entity, AttributeDefinition attribute) resolveLoaderStrategy
(OptionsLoaderType loaderType)
-
Field Details
-
loaderStrategies
-
storeAwareLocator
-
dataManager
-
metadata
-
scriptEvaluator
protected org.springframework.scripting.ScriptEvaluator scriptEvaluator -
ENTITY_QUERY_PARAM
- See Also:
-
ENTITY_FIELD_QUERY_PARAM
- See Also:
-
COMMON_PARAM_PATTERN
-
-
Constructor Details
-
AttributeOptionsLoaderImpl
public AttributeOptionsLoaderImpl(StoreAwareLocator storeAwareLocator, DataManager dataManager, Metadata metadata, org.springframework.scripting.ScriptEvaluator scriptEvaluator)
-
-
Method Details
-
init
@PostConstruct public void init() -
loadOptions
- Specified by:
loadOptions
in interfaceAttributeOptionsLoader
-
resolveLoaderStrategy
protected AttributeOptionsLoaderImpl.OptionsLoaderStrategy resolveLoaderStrategy(OptionsLoaderType loaderType) -
executeSql
-
buildSqlQuery
protected AttributeOptionsLoaderImpl.SqlQuery buildSqlQuery(String script, Map<String, Object> params) -
getQueryParameterValue
-
executeJpql
-
buildJpqlQuery
-
executeGroovyScript
-