Class ComparisonCondition
java.lang.Object
org.tentackle.dbms.dsl.ComparisonCondition
- All Implemented Interfaces:
Condition, SqlElement
Two expressions compared by an
Operator.
Expressions spanning more than one column are compared column by column,
which is applicable to equality only (see Operator.isMultiColumnApplicable()).
- Author:
- harald
-
Constructor Summary
ConstructorsConstructorDescriptionComparisonCondition(Expression<?> leftExpression, Operator operator, Expression<?> rightExpression) Creates a comparison. -
Method Summary
Modifier and TypeMethodDescriptionExpression<?> Gets the left expression.Gets the comparison operator.Expression<?> Gets the right expression.voidrender(RenderContext context) Renders this element into the given context.
-
Constructor Details
-
ComparisonCondition
public ComparisonCondition(Expression<?> leftExpression, Operator operator, Expression<?> rightExpression) Creates a comparison.- Parameters:
leftExpression- the left expressionoperator- the comparison operatorrightExpression- the right expression
-
-
Method Details
-
getLeftExpression
-
getOperator
-
getRightExpression
-
render
Description copied from interface:SqlElementRenders this element into the given context.- Specified by:
renderin interfaceSqlElement- Parameters:
context- the render context
-