public class EnumLiteral extends EnumExpression implements SQLLiteral
SQLExpression.ColumnExpressionList
delegate
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
Constructor and Description |
---|
EnumLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for an Enum literal with a value.
|
Modifier and Type | Method and Description |
---|---|
Object |
getValue()
Accessor to the literal value
|
boolean |
isParameter() |
void |
setJavaTypeMapping(JavaTypeMapping mapping) |
void |
setNotParameter()
Method to set this literal as not being a parameter.
|
add, div, eq, ge, getDelegate, gt, invoke, le, lt, mod, mul, ne, sub, toSQLText
and, bitAnd, bitOr, cast, com, distinct, encloseInParentheses, eor, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, in, ior, is, neg, not
public EnumLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value, String parameterName)
stmt
- the SQL statementmapping
- the mappingvalue
- the valueparameterName
- Name of the parameter that this represents if any (as JDBC "?")public void setJavaTypeMapping(JavaTypeMapping mapping)
setJavaTypeMapping
in class EnumExpression
public Object getValue()
SQLLiteral
getValue
in interface SQLLiteral
public boolean isParameter()
isParameter
in class DelegatedExpression
public void setNotParameter()
SQLLiteral
setNotParameter
in interface SQLLiteral
Copyright © 2017. All rights reserved.