public class EnumLiteral extends EnumExpression implements SQLLiteral
SQLExpression.ColumnExpressionListdelegatelowestOperator, 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, toSQLTextand, bitAnd, bitOr, cast, com, distinct, encloseInParentheses, eor, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, in, ior, is, neg, notpublic 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 EnumExpressionpublic Object getValue()
SQLLiteralgetValue in interface SQLLiteralpublic boolean isParameter()
isParameter in class DelegatedExpressionpublic void setNotParameter()
SQLLiteralsetNotParameter in interface SQLLiteralCopyright © 2017. All rights reserved.