Class MapLiteral.MapValueLiteral
java.lang.Object
org.datanucleus.store.rdbms.sql.expression.SQLExpression
org.datanucleus.store.rdbms.sql.expression.MapLiteral.MapValueLiteral
- All Implemented Interfaces:
SQLLiteral
- Enclosing class:
MapLiteral
An SQL expression that will test if a column of a table falls within the given Map's values.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
SQLExpression.ColumnExpressionList
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
private List
<SQLExpression> Expressions for all values in the MapFields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
-
Constructor Summary
ConstructorsConstructorDescriptionMapValueLiteral
(SQLStatement stmt, JavaTypeMapping mapping, Object value) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Accessor to the literal valuevoid
Method to set this literal as not being a parameter.protected void
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
add, and, bitAnd, bitOr, cast, com, distinct, div, encloseInParentheses, eor, eq, ge, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, gt, in, invoke, ior, is, isParameter, le, lt, mod, mul, ne, neg, not, setJavaTypeMapping, sub, toSQLText, unDistinct
-
Field Details
-
value
-
valueExpressions
Expressions for all values in the Map
-
-
Constructor Details
-
MapValueLiteral
Constructor.- Parameters:
stmt
- SQL Statementmapping
- The mapping to the Mapvalue
- The transient Map that is the value.
-
-
Method Details
-
getValueExpressions
-
getValue
Description copied from interface:SQLLiteral
Accessor to the literal value- Specified by:
getValue
in interfaceSQLLiteral
- Returns:
- the value of the literal
-
setNotParameter
public void setNotParameter()Description copied from interface:SQLLiteral
Method to set this literal as not being a parameter. If the literal if not currently a parameter then does nothing. Updates any underlying SQL to have the value.- Specified by:
setNotParameter
in interfaceSQLLiteral
-
setStatement
protected void setStatement()
-