public abstract static class SqlOperator.SqlOperatorNumber extends SqlOperator<Number,Number>
SqlOperator
for Number
comparison operations.SqlOperator.SqlOperatorBetween<N extends Number>, SqlOperator.SqlOperatorContainment, SqlOperator.SqlOperatorEmptyness, SqlOperator.SqlOperatorLike, SqlOperator.SqlOperatorNumber, SqlOperator.SqlOperatorString
BETWEEN, EMPTY, EQUAL, GREATER_OR_EQUAL, GREATER_THAN, IN, LESS_OR_EQUAL, LESS_THAN, LIKE, NOT_BETWEEN, NOT_EMPTY, NOT_EQUAL, NOT_IN, NOT_LIKE
Constructor and Description |
---|
SqlOperatorNumber(String sql)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
eval(int delta) |
protected boolean |
evalNullAndNotNull() |
boolean |
evaluate(Number arg1,
Number arg2)
This method evaluates this
SqlOperator for the given arguments. |
getSql, getType, negate, toString
public SqlOperatorNumber(String sql)
sql
- - see SqlOperator.getSql()
.protected abstract boolean eval(int delta)
delta
- the result of Comparable.compareTo(Object)
.evaluate(Number, Number)
.protected boolean evalNullAndNotNull()
evaluate(Number, Number)
if one argument is null
and the other is NOT
null
.public boolean evaluate(Number arg1, Number arg2)
SqlOperator
SqlOperator
for the given arguments.evaluate
in class SqlOperator<Number,Number>
arg1
- is the first argument.arg2
- is the second argument.SqlOperator
applied to the given arguments.Copyright © 2001–2016 mmm-Team. All rights reserved.