|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.sql.expression.SQLExpression
org.datanucleus.store.rdbms.sql.expression.DelegatedExpression
org.datanucleus.store.rdbms.sql.expression.EnumExpression
public class EnumExpression
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 |
|---|
LOCALISER, lowestOperator, mapping, parameterName, st, stmt, subExprs, table |
| Constructor Summary | |
|---|---|
EnumExpression(SQLStatement stmt,
SQLTable table,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
Constructor for an expression for an enum field/property. |
|
| Method Summary | |
|---|---|
void |
setJavaTypeMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
|
| Methods inherited from class org.datanucleus.store.rdbms.sql.expression.DelegatedExpression |
|---|
add, div, eq, ge, getDelegate, gt, invoke, le, lt, mod, mul, ne, sub, toSQLText |
| Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression |
|---|
and, cast, com, distinct, encloseInParentheses, eor, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, in, ior, is, isParameter, neg, not |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumExpression(SQLStatement stmt,
SQLTable table,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
stmt - The SQL statementtable - Table containing the enummapping - Mapping for the enum| Method Detail |
|---|
public void setJavaTypeMapping(org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping)
setJavaTypeMapping in class SQLExpression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||