Interface ConditionGenerator

All Known Implementing Classes:
JpqlConditionGenerator, KeyValuePropertyConditionGenerator, LogicalConditionGenerator, PropertyConditionGenerator

public interface ConditionGenerator
Modifies parts of JPQL query
  • Method Details

    • supports

      boolean supports(ConditionGenerationContext context)
      Checks whether the condition generator supports the given context.
      Parameters:
      context - condition generation context
      Returns:
      true if the condition generator supports the given context, or false otherwise
    • generateJoin

      String generateJoin(ConditionGenerationContext context)
      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

      String generateWhere(ConditionGenerationContext context)
      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 condition
      parameterValue - parameter value
      entityName - entity name
      Returns:
      a modified parameter value