Package io.jmix.data.impl.jpql.generator
Class KeyValuePropertyConditionGenerator
java.lang.Object
io.jmix.data.impl.jpql.generator.PropertyConditionGenerator
io.jmix.data.impl.jpql.generator.KeyValuePropertyConditionGenerator
- All Implemented Interfaces:
ConditionGenerator
@Component("data_KeyValuePropertyConditionGenerator")
@Order(990)
public class KeyValuePropertyConditionGenerator
extends PropertyConditionGenerator
-
Field Summary
Fields inherited from class io.jmix.data.impl.jpql.generator.PropertyConditionGenerator
metadata, metadataTools
-
Constructor Summary
ConstructorDescriptionKeyValuePropertyConditionGenerator
(MetadataTools metadataTools, Metadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
generateKeyValueWhere
(PropertyCondition propertyCondition, String entityAlias) generateWhere
(ConditionGenerationContext context) Returns a JPQL 'where' clause modified according to the given context.boolean
supports
(ConditionGenerationContext context) Checks whether the condition generator supports the givencontext
.Methods inherited from class io.jmix.data.impl.jpql.generator.PropertyConditionGenerator
generateJoin, generateParameterValue, generateWhere, getProperty, isCrossDataStoreReference
-
Constructor Details
-
KeyValuePropertyConditionGenerator
@Autowired public KeyValuePropertyConditionGenerator(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
-
generateKeyValueWhere
-