Class PropertyConditionUtils

java.lang.Object
io.jmix.core.querycondition.PropertyConditionUtils

public class PropertyConditionUtils extends Object
  • Constructor Details

    • PropertyConditionUtils

      public PropertyConditionUtils()
  • Method Details

    • isUnaryOperation

      public static boolean isUnaryOperation(PropertyCondition propertyCondition)
      Parameters:
      propertyCondition - property condition
      Returns:
      true if property condition operation is unary (doesn't require parameter value), e.g "is set"
    • isCollectionOperation

      public static boolean isCollectionOperation(PropertyCondition propertyCondition)
      Parameters:
      propertyCondition - property condition
      Returns:
      true if property condition operation is collection (doesn't require parameter value), e.g "in list"
    • isInIntervalOperation

      public static boolean isInIntervalOperation(PropertyCondition propertyCondition)
      Parameters:
      propertyCondition - property condition
      Returns:
      true if property condition operation is "in interval"
    • generateParameterName

      public static String generateParameterName(String property)
      Parameters:
      property - an entity property
      Returns:
      a parameter name
    • getJpqlOperation

      public static String getJpqlOperation(PropertyCondition condition)
      Parameters:
      condition - property condition
      Returns:
      a JPQL operation
    • getInIntervalJpqlOperation

      protected static String getInIntervalJpqlOperation(PropertyCondition condition)