public class BinaryExpression extends SQLExpression
SQLExpression.ColumnExpressionList
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
Constructor and Description |
---|
BinaryExpression(SQLStatement stmt,
JavaTypeMapping mapping,
String functionName,
List<SQLExpression> args,
List types) |
BinaryExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor for an SQL expression for a (field) mapping in a specified table.
|
Modifier and Type | Method and Description |
---|---|
BooleanExpression |
eq(SQLExpression expr)
Equality operator (equals to)
|
BooleanExpression |
gt(SQLExpression expr)
Relational operator (greater than)
|
BooleanExpression |
gteq(SQLExpression expr) |
BooleanExpression |
in(SQLExpression expr,
boolean not)
In expression.
|
BooleanExpression |
lt(SQLExpression expr)
Relational operator (lower than)
|
BooleanExpression |
lteq(SQLExpression expr) |
BooleanExpression |
noteq(SQLExpression expr) |
add, and, bitAnd, bitOr, cast, com, distinct, div, encloseInParentheses, eor, ge, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, invoke, ior, is, isParameter, le, mod, mul, ne, neg, not, setJavaTypeMapping, sub, toSQLText
public BinaryExpression(SQLStatement stmt, SQLTable table, JavaTypeMapping mapping)
stmt
- The statementtable
- The table in the statementmapping
- The mapping for the fieldpublic BinaryExpression(SQLStatement stmt, JavaTypeMapping mapping, String functionName, List<SQLExpression> args, List types)
stmt
- SQL statementmapping
- The mappingfunctionName
- Function to invokeargs
- Function argstypes
- Function arg typespublic BooleanExpression eq(SQLExpression expr)
SQLExpression
eq
in class SQLExpression
expr
- the right-hand operandpublic BooleanExpression noteq(SQLExpression expr)
public BooleanExpression lt(SQLExpression expr)
SQLExpression
lt
in class SQLExpression
expr
- the right-hand operandpublic BooleanExpression lteq(SQLExpression expr)
public BooleanExpression gt(SQLExpression expr)
SQLExpression
gt
in class SQLExpression
expr
- the right-hand operandpublic BooleanExpression gteq(SQLExpression expr)
public BooleanExpression in(SQLExpression expr, boolean not)
SQLExpression
expr
in
in class SQLExpression
expr
- the right-hand expressionnot
- Whether we really want "not in"Copyright © 2017. All rights reserved.