| |
|
| java.lang.Object org.jpox.store.expression.ScalarExpression org.jpox.store.expression.MapExpression
MapExpression | public class MapExpression extends ScalarExpression (Code) | | An expression that represents some Map field in a query candidate
class, or a Map field in an object linked from the candidate class
by navigation.
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 a JPOX extension.
version: $Revision: 1.33 $ |
MapExpression | public MapExpression(QueryExpression qs, JavaTypeMapping mapping, LogicSetExpression te, MapStore mapStore, String fieldName)(Code) | | Constructor.
Parameters: qs - The Query Statement Parameters: mapping - The java field mapping Parameters: te - The Table Expression Parameters: mapStore - the backing store. Parameters: fieldName - Name of the field for the map. |
containsEntryMethod | public BooleanExpression containsEntryMethod(ScalarExpression keyExpr, ScalarExpression valueExpr)(Code) | | Executed when the containsEntry() method is found in a query filter.
This is a JPOX extension to JDOQL 1.0.1/2.0.
Parameters: keyExpr - The ScalarExpression param for map.containsEntry(...). Parameters: valueExpr - The ScalarExpression param for map.containsEntry(...). The BooleanExpression resulting from map.containsEntry(). |
containsKeyMethod | public BooleanExpression containsKeyMethod(ScalarExpression expr)(Code) | | Executed when the containsKey() method is found in a query filter.
This is added in JDO 2.0.
Parameters: expr - The ScalarExpression param for map.containsKey(...). The BooleanExpression resulting from map.containsKey(). |
containsMethod | public BooleanExpression containsMethod(ScalarExpression expr)(Code) | | Executed when a contains() method is found in a query filter.
This simply uses the containsValueMethod() to check against values.
Parameters: expr - The ScalarExpression param for map.contains(...). The BooleanExpression resulting from map.contains(). |
containsValueMethod | public BooleanExpression containsValueMethod(ScalarExpression expr)(Code) | | Executed when the containsValue() method is found in a query filter.
This is added in JDO 2.0.
Parameters: expr - The ScalarExpression param for map.containsValue(...). The BooleanExpression resulting from map.containsValue(). |
isEmptyMethod | public BooleanExpression isEmptyMethod()(Code) | | Return the BooleanExpression for a query filter in the form
"map.isEmpty()".
The BooleanExpression for a query filter in the form "map.isEmpty()". |
sizeMethod | public NumericExpression sizeMethod()(Code) | | Executed when the size() method is found in a query filter.
The NumericExpression resulting from the size() method. |
toStatementText | public StatementText toStatementText(int mode)(Code) | | Method to return the statement text.
Parameters: mode - (0=PROJECTION;1=FILTER) The statement throws: JPOXUserException - since this object is inaccessible directly. |
|
|
|