Package org.eclipse.net4j.db.dml
Interface SQLCondition
- All Superinterfaces:
SQLExpression,SQLOrderItem,SQLSelectItem
A boolean SQL expression that can also be projected or ordered when supported by a dialect.
Conditions created with
and(SQLCondition) and or(SQLCondition) retain their
explicit tree structure; the compiler adds parentheses where needed. By contrast, connector
calls in a fluent WHERE, HAVING, or JOIN ON clause follow SQL operator precedence, where AND
binds more tightly than OR. Use complete composed conditions when a particular grouping is
required. Comparisons to SQL NULL are not rewritten; use SQL.isNull(SQLExpression) or
SQL.isNotNull(SQLExpression) for SQL NULL tests.- 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 TypeMethodDescriptiondefault SQLConditionand(SQLCondition other) Combines this condition with another condition using AND.default SQLConditionnot()Negates this condition.default SQLConditionor(SQLCondition other) Combines this condition with another condition using OR.Methods inherited from interface org.eclipse.net4j.db.dml.SQLExpression
as
-
Method Details
-
and
Combines this condition with another condition using AND.- Parameters:
other- the condition to combine- Returns:
- the combined condition
-
or
Combines this condition with another condition using OR.- Parameters:
other- the condition to combine- Returns:
- the combined condition
-
not
Negates this condition.- Returns:
- the negated condition
-