org.datanucleus.store.rdbms.sql.expression
Class MapLiteral.MapValueLiteral

java.lang.Object
  extended by org.datanucleus.store.rdbms.sql.expression.SQLExpression
      extended by 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 inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
LOCALISER, lowestOperator, mapping, parameterName, st, stmt, subExprs, table
 
Constructor Summary
MapLiteral.MapValueLiteral(SQLStatement stmt, org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping, Object value)
          Constructor.
 
Method Summary
 Object getValue()
          Accessor to the literal value
 List<SQLExpression> getValueExpressions()
           
 void setNotParameter()
          Method to set this literal as not being a parameter.
protected  void setStatement()
           
 
Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression
add, and, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapLiteral.MapValueLiteral

public MapLiteral.MapValueLiteral(SQLStatement stmt,
                                  org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
                                  Object value)
Constructor.

Parameters:
stmt - SQL Statement
mapping - The mapping to the Map
value - The transient Map that is the value.
Method Detail

getValueExpressions

public List<SQLExpression> getValueExpressions()

getValue

public Object getValue()
Description copied from interface: SQLLiteral
Accessor to the literal value

Specified by:
getValue in interface SQLLiteral
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 interface SQLLiteral

setStatement

protected void setStatement()


Copyright © 2012. All Rights Reserved.