Package io.jmix.core.querycondition
Class PropertyConditionUtils
java.lang.Object
io.jmix.core.querycondition.PropertyConditionUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
generateParameterName
(String property) protected static String
getInIntervalJpqlOperation
(PropertyCondition condition) static String
getJpqlOperation
(PropertyCondition condition) static boolean
isCollectionOperation
(PropertyCondition propertyCondition) static boolean
isInIntervalOperation
(PropertyCondition propertyCondition) static boolean
isUnaryOperation
(PropertyCondition propertyCondition)
-
Constructor Details
-
PropertyConditionUtils
public PropertyConditionUtils()
-
-
Method Details
-
isUnaryOperation
- Parameters:
propertyCondition
- property condition- Returns:
- true if property condition operation is unary (doesn't require parameter value), e.g "is set"
-
isCollectionOperation
- Parameters:
propertyCondition
- property condition- Returns:
- true if property condition operation is collection (doesn't require parameter value), e.g "in list"
-
isInIntervalOperation
- Parameters:
propertyCondition
- property condition- Returns:
- true if property condition operation is "in interval"
-
generateParameterName
- Parameters:
property
- an entity property- Returns:
- a parameter name
-
getJpqlOperation
- Parameters:
condition
- property condition- Returns:
- a JPQL operation
-
getInIntervalJpqlOperation
-