N
- the genric type of SqlOperator.getType()
.public abstract static class SqlOperator.SqlOperatorBetween<N extends Number> extends SqlOperator<N,Range<N>>
SqlOperator
for comparison of Number
with Range
using SQL
BETWEEN operation.SqlOperator.SqlOperatorBetween<N extends Number>, SqlOperator.SqlOperatorContainment, SqlOperator.SqlOperatorEmptyness, SqlOperator.SqlOperatorLike, SqlOperator.SqlOperatorNumber, SqlOperator.SqlOperatorString
Modifier and Type | Field and Description |
---|---|
static String |
SQL_BETWEEN
"BETWEEN"
|
static String |
SQL_NOT_BETWEEN
"NOT BETWEEN"
|
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 |
---|
SqlOperatorBetween(boolean positive,
Class<N> type)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(N arg1,
Range<N> arg2)
This method evaluates this
SqlOperator for the given arguments. |
private boolean |
isPositive() |
getSql, getType, negate, toString
public static final String SQL_BETWEEN
public static final String SQL_NOT_BETWEEN
public SqlOperatorBetween(boolean positive, Class<N> type)
positive
- - true
for SQL_BETWEEN
, false
for SQL_NOT_BETWEEN
.type
- - see SqlOperator.getType()
.private boolean isPositive()
public boolean evaluate(N arg1, Range<N> arg2)
SqlOperator
SqlOperator
for the given arguments.evaluate
in class SqlOperator<N extends Number,Range<N extends 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.