Class EnumExpression
- java.lang.Object
-
- org.datanucleus.store.rdbms.sql.expression.SQLExpression
-
- org.datanucleus.store.rdbms.sql.expression.DelegatedExpression
-
- org.datanucleus.store.rdbms.sql.expression.EnumExpression
-
- Direct Known Subclasses:
EnumLiteral
public class EnumExpression extends DelegatedExpression
Expression representing an enum field/property. An enum can be represented as a String or as a numeric hence requires its own expression. Implemented as an internal delegate of the correct root expression type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
SQLExpression.ColumnExpressionList
-
-
Field Summary
-
Fields inherited from class org.datanucleus.store.rdbms.sql.expression.DelegatedExpression
delegate
-
Fields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
-
-
Constructor Summary
Constructors Constructor Description EnumExpression(SQLStatement stmt, SQLTable table, JavaTypeMapping mapping)
Constructor for an expression for an enum field/property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setJavaTypeMapping(JavaTypeMapping mapping)
-
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.DelegatedExpression
add, div, eq, ge, getDelegate, gt, invoke, isParameter, le, lt, mod, mul, ne, sub, toSQLText
-
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
and, bitAnd, bitOr, cast, com, distinct, encloseInParentheses, eor, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, in, ior, is, neg, not, unDistinct
-
-
-
-
Constructor Detail
-
EnumExpression
public EnumExpression(SQLStatement stmt, SQLTable table, JavaTypeMapping mapping)
Constructor for an expression for an enum field/property.- Parameters:
stmt
- The SQL statementtable
- Table containing the enummapping
- Mapping for the enum
-
-
Method Detail
-
setJavaTypeMapping
public void setJavaTypeMapping(JavaTypeMapping mapping)
- Overrides:
setJavaTypeMapping
in classSQLExpression
-
-