public class ByteLiteral extends NumericExpression implements SQLLiteral
SQLExpression.ColumnExpressionList
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
Constructor and Description |
---|
ByteLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Creates a byte literal.
|
Modifier and Type | Method and Description |
---|---|
SQLExpression |
add(SQLExpression expr)
Additive Operator.
|
SQLExpression |
div(SQLExpression expr)
Division Operator.
|
BooleanExpression |
eq(SQLExpression expr)
Equality operator (equals to)
|
BooleanExpression |
ge(SQLExpression expr)
Relational operator (greater than or equals)
|
Object |
getValue()
Accessor to the literal value
|
BooleanExpression |
gt(SQLExpression expr)
Relational operator (greater than)
|
BooleanExpression |
le(SQLExpression expr)
Relational operator (lower than or equals)
|
BooleanExpression |
lt(SQLExpression expr)
Relational operator (lower than)
|
SQLExpression |
mod(SQLExpression expr)
Method to return a modulus expression.
|
SQLExpression |
mul(SQLExpression expr)
Multiplication Operator
|
BooleanExpression |
ne(SQLExpression expr)
Not equality operator (not equals to)
|
SQLExpression |
neg()
Unary Minus Operator
|
void |
setNotParameter()
Method to set this literal as not being a parameter.
|
protected void |
setStatement() |
SQLExpression |
sub(SQLExpression expr)
Additive Operator.
|
bitAnd, bitOr, com, in
and, cast, distinct, encloseInParentheses, eor, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, invoke, ior, is, isParameter, not, setJavaTypeMapping, toSQLText
public ByteLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value, String parameterName)
stmt
- the SQL statementmapping
- the mappingvalue
- the valueparameterName
- Name of the parameter that this represents (as JDBC "?")public BooleanExpression eq(SQLExpression expr)
SQLExpression
eq
in class NumericExpression
expr
- the right-hand operandpublic BooleanExpression ne(SQLExpression expr)
SQLExpression
ne
in class NumericExpression
expr
- the right-hand operandpublic BooleanExpression lt(SQLExpression expr)
SQLExpression
lt
in class NumericExpression
expr
- the right-hand operandpublic BooleanExpression le(SQLExpression expr)
SQLExpression
le
in class NumericExpression
expr
- the right-hand operandpublic BooleanExpression gt(SQLExpression expr)
SQLExpression
gt
in class NumericExpression
expr
- the right-hand operandpublic BooleanExpression ge(SQLExpression expr)
SQLExpression
ge
in class NumericExpression
expr
- the right-hand operandpublic SQLExpression add(SQLExpression expr)
SQLExpression
add
in class NumericExpression
expr
- the right-hand operandpublic SQLExpression sub(SQLExpression expr)
SQLExpression
sub
in class NumericExpression
expr
- the right-hand operandpublic SQLExpression mul(SQLExpression expr)
SQLExpression
mul
in class NumericExpression
expr
- the right-hand operatorpublic SQLExpression div(SQLExpression expr)
SQLExpression
div
in class NumericExpression
expr
- the right-hand operatorpublic SQLExpression mod(SQLExpression expr)
NumericExpression
mod
in class NumericExpression
expr
- The expression to modulus againstpublic SQLExpression neg()
SQLExpression
neg
in class NumericExpression
public Object getValue()
SQLLiteral
getValue
in interface SQLLiteral
public void setNotParameter()
SQLLiteral
setNotParameter
in interface SQLLiteral
protected void setStatement()
Copyright © 2017. All rights reserved.