Package io.jmix.data.impl.jpql.generator
Interface ConditionGenerator
- All Known Implementing Classes:
DynAttrPropertyConditionGenerator
,JpqlConditionGenerator
,KeyValuePropertyConditionGenerator
,LogicalConditionGenerator
,PropertyConditionGenerator
public interface ConditionGenerator
Modifies parts of JPQL query
-
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.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
.
-
Method Details
-
supports
Checks whether the condition generator supports the givencontext
.- Parameters:
context
- condition generation context- Returns:
- true if the condition generator supports the given context, or false otherwise
-
generateJoin
Returns a JPQL 'join' clause modified according to the given context.- Parameters:
context
- condition generation context- Returns:
- a JPQL 'join' clause modified according to the given context
-
generateWhere
Returns a JPQL 'where' clause modified according to the given context.- Parameters:
context
- condition generation context- Returns:
- a JPQL 'where' clause modified according to the given context
-
generateParameterValue
@Nullable Object generateParameterValue(@Nullable Condition condition, @Nullable Object parameterValue, @Nullable String entityName) Returns a parameter value modified according to the given condition.- Parameters:
condition
- a conditionparameterValue
- parameter valueentityName
- entity name- Returns:
- a modified parameter value
-