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 Details

    • LIKE_PATTERN

      public static final Pattern LIKE_PATTERN
  • Constructor Details

    • JpqlConditionGenerator

      public JpqlConditionGenerator()
  • Method Details

    • supports

      public boolean supports(ConditionGenerationContext context)
      Description copied from interface: ConditionGenerator
      Checks whether the condition generator supports the given context.
      Specified by:
      supports in interface ConditionGenerator
      Parameters:
      context - condition generation context
      Returns:
      true if the condition generator supports the given context, or false otherwise
    • generateJoin

      public String generateJoin(ConditionGenerationContext context)
      Description copied from interface: ConditionGenerator
      Returns a JPQL 'join' clause modified according to the given context.
      Specified by:
      generateJoin in interface ConditionGenerator
      Parameters:
      context - condition generation context
      Returns:
      a JPQL 'join' clause modified according to the given context
    • generateWhere

      public String generateWhere(ConditionGenerationContext context)
      Description copied from interface: ConditionGenerator
      Returns a JPQL 'where' clause modified according to the given context.
      Specified by:
      generateWhere in interface ConditionGenerator
      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 interface ConditionGenerator
      Parameters:
      condition - a condition
      parameterValue - parameter value
      entityName - entity name
      Returns:
      a modified parameter value