Class ComparisonPredicates
java.lang.Object
io.github.torand.fastersql.predicate.comparison.ComparisonPredicates
Provides factory methods for comparison predicates.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Eq
eq
(LeftOperand left, Expression right) Creates an equivalence predicate taking an expression as right operand.static Eq
eq
(LeftOperand left, Object right) Creates an equivalence predicate taking a scalar value as right operand.static Ge
ge
(LeftOperand left, Expression right) Creates a greater than or equal predicate taking an expression as right operand.static Ge
ge
(LeftOperand left, Object right) Creates a greater than or equal predicate taking a scalar value as right operand.static Gt
gt
(LeftOperand left, Expression right) Creates a greater than predicate taking an expression as right operand.static Gt
gt
(LeftOperand left, Object right) Creates a greater than predicate taking a scalar value as right operand.static Le
le
(LeftOperand left, Expression right) Creates a less than or equal predicate taking an expression as right operand.static Le
le
(LeftOperand left, Object right) Creates a less than or equal predicate taking a scalar value as right operand.static Lt
lt
(LeftOperand left, Expression right) Creates a less than predicate taking an expression as right operand.static Lt
lt
(LeftOperand left, Object right) Creates a less than predicate taking a scalar value as right operand.
-
Method Details
-
eq
Creates an equivalence predicate taking a scalar value as right operand.- Parameters:
left
- the left operand.right
- the right operand.- Returns:
- the predicate.
-
eq
Creates an equivalence predicate taking an expression as right operand.- Parameters:
left
- the left operand.right
- the right operand.- Returns:
- the predicate.
-
lt
Creates a less than predicate taking a scalar value as right operand.- Parameters:
left
- the left operand.right
- the right operand.- Returns:
- the predicate.
-
lt
Creates a less than predicate taking an expression as right operand.- Parameters:
left
- the left operand.right
- the right operand.- Returns:
- the predicate.
-
le
Creates a less than or equal predicate taking a scalar value as right operand.- Parameters:
left
- the left operand.right
- the right operand.- Returns:
- the predicate.
-
le
Creates a less than or equal predicate taking an expression as right operand.- Parameters:
left
- the left operand.right
- the right operand.- Returns:
- the predicate.
-
gt
Creates a greater than predicate taking a scalar value as right operand.- Parameters:
left
- the left operand.right
- the right operand.- Returns:
- the predicate.
-
gt
Creates a greater than predicate taking an expression as right operand.- Parameters:
left
- the left operand.right
- the right operand.- Returns:
- the predicate.
-
ge
Creates a greater than or equal predicate taking a scalar value as right operand.- Parameters:
left
- the left operand.right
- the right operand.- Returns:
- the predicate.
-
ge
Creates a greater than or equal predicate taking an expression as right operand.- Parameters:
left
- the left operand.right
- the right operand.- Returns:
- the predicate.
-