public class ObjectLiteral extends ObjectExpression implements SQLLiteral
SQLExpression.ColumnExpressionList
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
Constructor and Description |
---|
ObjectLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for an Object literal with a value.
|
Modifier and Type | Method and Description |
---|---|
BooleanExpression |
eq(SQLExpression expr)
Method called when the query contains "object == value".
|
Object |
getValue()
Accessor to the literal value
|
BooleanExpression |
ne(SQLExpression expr)
Method called when the query contains "object NOTEQUALS value".
|
void |
setNotParameter()
Method to set this literal as not being a parameter.
|
protected void |
setStatement() |
String |
toString() |
addSubexpressionsToRelatedExpression, cast, ge, gt, in, invoke, is, le, lt, processComparisonOfImplementationWithReference, useFirstColumnOnly
add, and, com, distinct, div, encloseInParentheses, eor, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, ior, isParameter, mod, mul, neg, not, setJavaTypeMapping, sub, toSQLText
public ObjectLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value, String parameterName)
stmt
- the SQL statementmapping
- the mappingvalue
- the Object valueparameterName
- Name of the parameter that this represents if any (as JDBC "?")public Object getValue()
SQLLiteral
getValue
in interface SQLLiteral
public BooleanExpression eq(SQLExpression expr)
eq
in class ObjectExpression
expr
- The expressionpublic BooleanExpression ne(SQLExpression expr)
ne
in class ObjectExpression
expr
- The expressionpublic void setNotParameter()
SQLLiteral
setNotParameter
in interface SQLLiteral
protected void setStatement()
Copyright © 2015. All rights reserved.