Package org.eclipse.net4j.db.dml.fluent
Interface SQLComparisonStep<NEXT>
- Type Parameters:
NEXT- the stage available after the comparison is completed
public interface SQLComparisonStep<NEXT>
The right-hand comparison stage. Completing an operator returns the enclosing clause stage.
Equality and ordering comparisons retain SQL NULL semantics; use
isNull() or
isNotNull() to test for NULL explicitly.- Since:
- 4.15
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and TypeMethodDescriptionbetween(SQLExpression lower, SQLExpression upper) Adds a BETWEEN comparison with the supplied lower and upper expressions.eq(SQLExpression right) Adds an equality comparison between the left expression supplied to this stage and the right expression.ge(SQLExpression right) Adds a greater-than-or-equal comparison between the left expression supplied to this stage and the right expression.gt(SQLExpression right) Adds a greater-than comparison between the left expression supplied to this stage and the right expression.in()Starts an incomplete IN value list in this statement builder.in(Iterable<? extends SQLExpression> values) Adds an IN comparison by consuming the iterable once in iteration order.in(SQLExpression first, SQLExpression... others) Adds an IN comparison using the supplied ordered expressions.in(SQLSubSelect query) Adds an IN comparison using the result of a complete nested SELECT.Adds an IS NOT NULL test for the left expression supplied to this stage.isNull()Adds an IS NULL test for the left expression supplied to this stage.le(SQLExpression right) Adds a less-than-or-equal comparison between the left expression supplied to this stage and the right expression.like(SQLExpression right) Adds a LIKE comparison.lt(SQLExpression right) Adds a less-than comparison between the left expression supplied to this stage and the right expression.ne(SQLExpression right) Adds an inequality comparison between the left expression supplied to this stage and the right expression.
-
Method Details
-
eq
Adds an equality comparison between the left expression supplied to this stage and the right expression.- Parameters:
right- the right expression of a comparison- Returns:
- the next valid fluent stage
-
ne
Adds an inequality comparison between the left expression supplied to this stage and the right expression.- Parameters:
right- the right expression of a comparison- Returns:
- the next valid fluent stage
-
lt
Adds a less-than comparison between the left expression supplied to this stage and the right expression.- Parameters:
right- the right expression of a comparison- Returns:
- the next valid fluent stage
-
le
Adds a less-than-or-equal comparison between the left expression supplied to this stage and the right expression.- Parameters:
right- the right expression of a comparison- Returns:
- the next valid fluent stage
-
gt
Adds a greater-than comparison between the left expression supplied to this stage and the right expression.- Parameters:
right- the right expression of a comparison- Returns:
- the next valid fluent stage
-
ge
Adds a greater-than-or-equal comparison between the left expression supplied to this stage and the right expression.- Parameters:
right- the right expression of a comparison- Returns:
- the next valid fluent stage
-
like
Adds a LIKE comparison. Pattern and escape semantics are determined by SQL and the target dialect.- Parameters:
right- the right expression of a comparison- Returns:
- the next valid fluent stage
-
between
Adds a BETWEEN comparison with the supplied lower and upper expressions.- Parameters:
lower- the lower bound expressionupper- the upper bound expression- Returns:
- the next valid fluent stage
-
in
Adds an IN comparison using the result of a complete nested SELECT.- Parameters:
query- the complete nested SELECT definition- Returns:
- the next valid fluent stage
-
in
Adds an IN comparison using the supplied ordered expressions.- Parameters:
first- the required first value expressionothers- additional value expressions- Returns:
- the next valid fluent stage
-
in
Adds an IN comparison by consuming the iterable once in iteration order.- Parameters:
values- the non-empty value expressions- Returns:
- the next valid fluent stage
-
in
Starts an incomplete IN value list in this statement builder.- Returns:
- the staged value-list builder
-
isNull
NEXT isNull()Adds an IS NULL test for the left expression supplied to this stage.- Returns:
- the next valid fluent stage
-
isNotNull
NEXT isNotNull()Adds an IS NOT NULL test for the left expression supplied to this stage.- Returns:
- the next valid fluent stage
-