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 booleanChecks if the given operator is a range operator.static booleanChecks if the given operator is a size operator.static booleanChecks if the given operator is a value operator.static OperatorSpecrange()Returns ContainsOperatorSpec for operators that involve containment checks.static OperatorSpecsize()Returns ContainsOperatorSpec for operators that involve size checks.static OperatorSpecvalue()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.
-