Class OperatorSpecRegistry
java.lang.Object
nl.datasteel.crudcraft.codegen.writer.search.OperatorSpecRegistry
Utility class that provides static methods to retrieve operator specifications
based on the SearchOperator enum. This class is used to encapsulate the logic
for determining the type of operator and returning the corresponding OperatorSpec.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Checks if the given operator is a range operator.static boolean
Checks if the given operator is a size operator.static boolean
Checks if the given operator is a value operator.static OperatorSpec
range()
Returns ContainsOperatorSpec for operators that involve containment checks.static OperatorSpec
size()
Returns ContainsOperatorSpec for operators that involve size checks.static OperatorSpec
value()
Returns ValueOperatorSpec for operators that involve value checks.
-
Method Details
-
value
Returns ValueOperatorSpec for operators that involve value checks. -
range
Returns ContainsOperatorSpec for operators that involve containment checks. -
size
Returns ContainsOperatorSpec for operators that involve size checks. -
isRangeOperator
Checks if the given operator is a range operator. -
isSizeOperator
Checks if the given operator is a size operator. -
isValueOperator
Checks if the given operator is a value operator. Value operators are those that do not involve range or size checks, and are not related to emptiness checks.
-