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
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
ConstructorsConstructorDescriptionEnumExpression
(SQLStatement stmt, SQLTable table, JavaTypeMapping mapping) Constructor for an expression for an enum field/property. -
Method Summary
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 Details
-
EnumExpression
Constructor for an expression for an enum field/property.- Parameters:
stmt
- The SQL statementtable
- Table containing the enummapping
- Mapping for the enum
-
-
Method Details
-
setJavaTypeMapping
- Overrides:
setJavaTypeMapping
in classSQLExpression
-