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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Patternprotected DataManagerprotected static final Stringprotected static final Stringprotected final Map<String,AttributeOptionsLoaderImpl.OptionsLoaderStrategy> protected Metadataprotected org.springframework.scripting.ScriptEvaluatorprotected StoreAwareLocator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LoadContext.QuerybuildJpqlQuery(String script, Map<String, Object> params) protected AttributeOptionsLoaderImpl.SqlQuerybuildSqlQuery(String script, Map<String, Object> params) protected ListexecuteGroovyScript(Object entity, AttributeDefinition attribute, String script) protected ListexecuteJpql(Object entity, AttributeDefinition attribute, String script) protected ListexecuteSql(Object entity, AttributeDefinition attribute, String script) protected ObjectgetQueryParameterValue(String name, Map<String, Object> params) voidinit()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:
loadOptionsin interfaceAttributeOptionsLoader
-
resolveLoaderStrategy
protected AttributeOptionsLoaderImpl.OptionsLoaderStrategy resolveLoaderStrategy(OptionsLoaderType loaderType) -
executeSql
-
buildSqlQuery
protected AttributeOptionsLoaderImpl.SqlQuery buildSqlQuery(String script, Map<String, Object> params) -
getQueryParameterValue
-
executeJpql
-
buildJpqlQuery
-
executeGroovyScript
-