public class MapExpression extends SQLExpression
When navigated through using containsKey(expr) the keys of the Map are relationally joined onto the query statement. When navigated through using containsValue(expr) the values of the Map are relationally joined onto the query statement. These 2 methods are required for JDO 2.0, whilst the isEmpty() and contains() are JDO 1.0.1. containsEntry() is an extension.
SQLExpression.ColumnExpressionList
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
Constructor and Description |
---|
MapExpression(SQLStatement stmt,
SQLTable table,
JavaTypeMapping mapping)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
BooleanExpression |
eq(SQLExpression expr)
Method to return the expression for comparing a map with a value.
|
SQLExpression |
invoke(String methodName,
List args)
Invocation of a method on this expression.
|
BooleanExpression |
ne(SQLExpression expr)
Method to return the expression for comparing a map with a value.
|
add, and, cast, com, distinct, div, encloseInParentheses, eor, ge, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, gt, in, ior, is, isParameter, le, lt, mod, mul, neg, not, setJavaTypeMapping, sub, toSQLText
public MapExpression(SQLStatement stmt, SQLTable table, JavaTypeMapping mapping)
stmt
- The SQL Statementtable
- Table containing the map fieldmapping
- The java field mappingpublic SQLExpression invoke(String methodName, List args)
SQLExpression
invoke
in class SQLExpression
methodName
- name of the method to invokeargs
- Args to this method (if any)public BooleanExpression eq(SQLExpression expr)
eq
in class SQLExpression
expr
- The value to compare with.public BooleanExpression ne(SQLExpression expr)
ne
in class SQLExpression
expr
- The value to compare with.Copyright © 2015. All rights reserved.