Package io.jmix.dynattr.impl
Class DynAttrPropertyConditionGenerator
java.lang.Object
io.jmix.data.impl.jpql.generator.PropertyConditionGenerator
io.jmix.dynattr.impl.DynAttrPropertyConditionGenerator
- All Implemented Interfaces:
ConditionGenerator
@Component("data_DynAttrPropertyConditionGenerator")
@Order(980)
public class DynAttrPropertyConditionGenerator
extends PropertyConditionGenerator
-
Field Summary
Fields inherited from class io.jmix.data.impl.jpql.generator.PropertyConditionGenerator
metadata, metadataTools
-
Constructor Summary
ConstructorDescriptionDynAttrPropertyConditionGenerator
(ReferenceToEntitySupport referenceToEntitySupport, DynAttrMetadata dynAttrMetadata, MetadataTools metadataTools, Metadata metadata) -
Method Summary
Modifier and TypeMethodDescriptiongenerateParameterValue
(Condition condition, Object parameterValue, String entityName) Returns a parameter value modified according to the given condition.generateWhere
(ConditionGenerationContext context) Returns a JPQL 'where' clause modified according to the given context.protected String
generateWhere
(String entityPropertyPath, ConditionGenerationContext context, DynAttrMetaProperty metaProperty) protected String
getValueFieldName
(MetaProperty metaProperty) boolean
supports
(ConditionGenerationContext context) Checks whether the condition generator supports the givencontext
.Methods inherited from class io.jmix.data.impl.jpql.generator.PropertyConditionGenerator
generateJoin, generateWhere, getProperty, isCrossDataStoreReference
-
Field Details
-
referenceToEntitySupport
-
dynAttrMetadata
-
-
Constructor Details
-
DynAttrPropertyConditionGenerator
@Autowired public DynAttrPropertyConditionGenerator(ReferenceToEntitySupport referenceToEntitySupport, DynAttrMetadata dynAttrMetadata, MetadataTools metadataTools, Metadata metadata)
-
-
Method Details
-
supports
Description copied from interface:ConditionGenerator
Checks whether the condition generator supports the givencontext
.- Specified by:
supports
in interfaceConditionGenerator
- Overrides:
supports
in classPropertyConditionGenerator
- Parameters:
context
- condition generation context- Returns:
- true if the condition generator supports the given context, or false otherwise
-
generateWhere
Description copied from interface:ConditionGenerator
Returns a JPQL 'where' clause modified according to the given context.- Specified by:
generateWhere
in interfaceConditionGenerator
- Overrides:
generateWhere
in classPropertyConditionGenerator
- Parameters:
context
- condition generation context- Returns:
- a JPQL 'where' clause modified according to the given context
-
generateWhere
protected String generateWhere(String entityPropertyPath, ConditionGenerationContext context, DynAttrMetaProperty metaProperty) -
getValueFieldName
-
generateParameterValue
@Nullable public Object generateParameterValue(@Nullable Condition condition, @Nullable Object parameterValue, @Nullable String entityName) Description copied from interface:ConditionGenerator
Returns a parameter value modified according to the given condition.- Specified by:
generateParameterValue
in interfaceConditionGenerator
- Overrides:
generateParameterValue
in classPropertyConditionGenerator
- Parameters:
condition
- a conditionparameterValue
- parameter valueentityName
- entity name- Returns:
- a modified parameter value
-