public class NullLiteral extends SQLExpression implements SQLLiteral
SQLExpression.ColumnExpressionList
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
Constructor and Description |
---|
NullLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for a null literal with a value (i.e null!).
|
Modifier and Type | Method and Description |
---|---|
SQLExpression |
add(SQLExpression expr)
Additive Operator.
|
BooleanExpression |
eq(SQLExpression expr)
Equality operator (equals to)
|
Object |
getValue()
Accessor to the literal value
|
BooleanExpression |
ne(SQLExpression expr)
Not equality operator (not equals to)
|
void |
setNotParameter()
Method to set this literal as not being a parameter.
|
and, cast, com, distinct, div, encloseInParentheses, eor, ge, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, gt, in, invoke, ior, is, isParameter, le, lt, mod, mul, neg, not, setJavaTypeMapping, sub, toSQLText
public NullLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value, String parameterName)
stmt
- the SQL statementmapping
- the mappingvalue
- Null!parameterName
- Name of the parameter that this represents if any (JDBC "?") NOT USEDpublic Object getValue()
SQLLiteral
getValue
in interface SQLLiteral
public SQLExpression add(SQLExpression expr)
SQLExpression
add
in class SQLExpression
expr
- the right-hand operandpublic BooleanExpression eq(SQLExpression expr)
SQLExpression
eq
in class SQLExpression
expr
- the right-hand operandpublic BooleanExpression ne(SQLExpression expr)
SQLExpression
ne
in class SQLExpression
expr
- the right-hand operandpublic void setNotParameter()
SQLLiteral
setNotParameter
in interface SQLLiteral
Copyright © 2015. All rights reserved.