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 SQLExpression
SQLExpression.ColumnExpressionList -
Field Summary
Fields inherited from class DelegatedExpression
delegateFields inherited from class 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 DelegatedExpression
add, div, eq, ge, getDelegate, gt, invoke, isParameter, le, lt, mod, mul, ne, sub, toSQLTextMethods inherited from class 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:
setJavaTypeMappingin classSQLExpression
-