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
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 SQLExpression
SQLExpression.ColumnExpressionList -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<SQLExpression> Expressions for all keys in the Mapprivate final MapFields inherited from class SQLExpression
lowestOperator, mapping, parameterName, st, stmt, subExprs, table -
Constructor Summary
ConstructorsConstructorDescriptionMapKeyLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Accessor to the literal valueinvoke(String methodName, List<SQLExpression> args) Invocation of a method on this expression.voidMethod to set this literal as not being a parameter.protected voidMethods inherited from class 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
-
Field Details
-
value
-
keyExpressions
Expressions for all keys in the Map
-
-
Constructor Details
-
MapKeyLiteral
Constructor.- Parameters:
stmt- SQL statementmapping- The mapping for the Mapvalue- The transient Map that is the value.
-
-
Method Details
-
getKeyExpressions
-
invoke
Description copied from class:SQLExpressionInvocation of a method on this expression.- Overrides:
invokein classSQLExpression- Parameters:
methodName- name of the method to invokeargs- Args to this method (if any)- Returns:
- the converted value
-
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()
-