Package io.jmix.data.impl.jpql.generator
Class JpqlConditionGenerator
java.lang.Object
io.jmix.data.impl.jpql.generator.JpqlConditionGenerator
- All Implemented Interfaces:
ConditionGenerator
@Component("data_JpqlConditionGenerator")
@Order(1000)
public class JpqlConditionGenerator
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.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
.
-
Field Details
-
LIKE_PATTERN
-
-
Constructor Details
-
JpqlConditionGenerator
public JpqlConditionGenerator()
-
-
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
-