Class ParameterJpqlGenerator

java.lang.Object
io.jmix.data.impl.jpql.generator.ParameterJpqlGenerator

@Component("data_ParameterJpqlGenerator") public class ParameterJpqlGenerator extends Object
Modifies JPQL query parameters according to the tree of conditions.
  • Field Details

  • Constructor Details

  • Method Details

    • processParameters

      public Map<String,Object> processParameters(Map<String,Object> parameters, Map<String,Object> queryParameters, Condition actualized, @Nullable String entityName)
      Returns parameters for JPQL query modified according to the given tree of conditions.
      Parameters:
      parameters - result parameters
      queryParameters - query parameters
      actualized - an actualized condition
      Returns:
      modified parameters
    • collectNestedPropertyConditions

      protected List<PropertyCondition> collectNestedPropertyConditions(Condition rootCondition)
    • collectNestedJpqlConditions

      protected List<JpqlCondition> collectNestedJpqlConditions(Condition rootCondition)
    • generateParameterValue

      @Nullable protected Object generateParameterValue(Condition condition, @Nullable Object parameterValue, @Nullable String entityName)