Package io.jmix.data.impl.jpql.generator
Class PropertyConditionGenerator
java.lang.Object
io.jmix.data.impl.jpql.generator.PropertyConditionGenerator
- All Implemented Interfaces:
ConditionGenerator
- Direct Known Subclasses:
KeyValuePropertyConditionGenerator
@Component("data_PropertyConditionGenerator")
@Order(1000)
public class PropertyConditionGenerator
extends Object
implements ConditionGenerator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateJoin
(ConditionGenerationContext context) Returns a JPQL 'join' clause modified according to the given context.generateParameterValue
(Condition condition, Object parameterValue, String entityName) Returns a parameter value modified according to the given condition.protected String
generateWhere
(PropertyCondition propertyCondition, String entityAlias, String property) generateWhere
(ConditionGenerationContext context) Returns a JPQL 'where' clause modified according to the given context.protected String
getProperty
(String property, String entityName) protected boolean
isCrossDataStoreReference
(String property, String entityName) boolean
supports
(ConditionGenerationContext context) Checks whether the condition generator supports the givencontext
.
-
Field Details
-
metadataTools
-
metadata
-
-
Constructor Details
-
PropertyConditionGenerator
-
-
Method Details
-
supports
Description copied from interface:ConditionGenerator
Checks whether the condition generator supports the givencontext
.- Specified by:
supports
in interfaceConditionGenerator
- Parameters:
context
- condition generation context- Returns:
- true if the condition generator supports the given context, or false otherwise
-
generateJoin
Description copied from interface:ConditionGenerator
Returns a JPQL 'join' clause modified according to the given context.- Specified by:
generateJoin
in interfaceConditionGenerator
- Parameters:
context
- condition generation context- Returns:
- a JPQL 'join' clause modified according to the given context
-
generateWhere
Description copied from interface:ConditionGenerator
Returns a JPQL 'where' clause modified according to the given context.- Specified by:
generateWhere
in interfaceConditionGenerator
- Parameters:
context
- condition generation context- Returns:
- a JPQL 'where' clause modified according to the given context
-
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
- Parameters:
condition
- a conditionparameterValue
- parameter valueentityName
- entity name- Returns:
- a modified parameter value
-
generateWhere
protected String generateWhere(PropertyCondition propertyCondition, String entityAlias, String property) -
getProperty
-
isCrossDataStoreReference
-