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
public static class MapLiteral.MapValueLiteral extends SQLExpression implements SQLLiteral
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
Fields Modifier and Type Field Description private java.util.Mapvalueprivate java.util.List<SQLExpression>valueExpressionsExpressions for all values in the Map-
Fields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
-
-
Constructor Summary
Constructors Constructor Description MapValueLiteral(SQLStatement stmt, JavaTypeMapping mapping, java.lang.Object value)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetValue()Accessor to the literal valuejava.util.List<SQLExpression>getValueExpressions()voidsetNotParameter()Method to set this literal as not being a parameter.protected voidsetStatement()-
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 Detail
-
value
private final java.util.Map value
-
valueExpressions
private java.util.List<SQLExpression> valueExpressions
Expressions for all values in the Map
-
-
Constructor Detail
-
MapValueLiteral
public MapValueLiteral(SQLStatement stmt, JavaTypeMapping mapping, java.lang.Object value)
Constructor.- Parameters:
stmt- SQL Statementmapping- The mapping to the Mapvalue- The transient Map that is the value.
-
-
Method Detail
-
getValueExpressions
public java.util.List<SQLExpression> getValueExpressions()
-
getValue
public java.lang.Object getValue()
Description copied from interface:SQLLiteralAccessor to the literal value- Specified by:
getValuein interfaceSQLLiteral- Returns:
- the value of the literal
-
setNotParameter
public void setNotParameter()
Description copied from interface:SQLLiteralMethod 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:
setNotParameterin interfaceSQLLiteral
-
setStatement
protected void setStatement()
-
-