Class MapLiteral.MapKeyLiteral
- java.lang.Object
-
- org.datanucleus.store.rdbms.sql.expression.SQLExpression
-
- org.datanucleus.store.rdbms.sql.expression.MapLiteral.MapKeyLiteral
-
- All Implemented Interfaces:
SQLLiteral
- Enclosing class:
- MapLiteral
public static class MapLiteral.MapKeyLiteral extends SQLExpression implements SQLLiteral
An SQL expression that will test if a column of a table falls within the given Map's keys.
-
-
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
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
-
-
Constructor Summary
Constructors Constructor Description MapKeyLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SQLExpression>
getKeyExpressions()
Object
getValue()
Accessor to the literal valueSQLExpression
invoke(String methodName, List args)
Invocation of a method on this expression.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, bitAnd, bitOr, cast, com, distinct, div, encloseInParentheses, eor, eq, ge, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, gt, in, ior, is, isParameter, le, lt, mod, mul, ne, neg, not, setJavaTypeMapping, sub, toSQLText, unDistinct
-
-
-
-
Constructor Detail
-
MapKeyLiteral
public MapKeyLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value)
Constructor.- Parameters:
stmt
- SQL statementmapping
- The mapping for the Mapvalue
- The transient Map that is the value.
-
-
Method Detail
-
getKeyExpressions
public List<SQLExpression> getKeyExpressions()
-
invoke
public SQLExpression invoke(String methodName, List args)
Description copied from class:SQLExpression
Invocation of a method on this expression.- Overrides:
invoke
in classSQLExpression
- Parameters:
methodName
- name of the method to invokeargs
- Args to this method (if any)- Returns:
- the converted value
-
getValue
public Object 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()
-
-