Package io.jmix.dynattrui.impl
Class AttributeOptionsLoaderImpl
java.lang.Object
io.jmix.dynattrui.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
-
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()
loadOptions
(Object entity, AttributeDefinition attribute) resolveLoaderStrategy
(OptionsLoaderType loaderType)
-
Field Details
-
loaderStrategies
-
storeAwareLocator
-
dataManager
-
metadata
-
scriptEvaluator
@Autowired 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()
-
-
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
-