|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.expression.ScalarExpression
org.jpox.store.expression.MapExpression
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.
Nested Class Summary |
Nested classes inherited from class org.jpox.store.expression.ScalarExpression |
ScalarExpression.DyadicOperator, ScalarExpression.ExpressionList, ScalarExpression.FieldExpression, ScalarExpression.IllegalArgumentTypeException, ScalarExpression.IllegalOperationException, ScalarExpression.MethodInvocationException, ScalarExpression.MonadicOperator, ScalarExpression.Operator |
Field Summary |
Fields inherited from class org.jpox.store.expression.ScalarExpression |
aliasIdentifier, expressionList, FILTER, LOCALISER, lowestOperator, mapping, OP_ADD, OP_AND, OP_BETWEEN, OP_COM, OP_CONCAT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MOD, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_OR, OP_SUB, PROJECTION, qs, st, te |
Constructor Summary | |
MapExpression(QueryExpression qs,
JavaTypeMapping mapping,
LogicSetExpression te,
MapStore mapStore,
java.lang.String fieldName)
Constructor. |
Method Summary | |
BooleanExpression |
containsEntryMethod(ScalarExpression keyExpr,
ScalarExpression valueExpr)
Executed when the containsEntry() method is found in a query filter. |
BooleanExpression |
containsKeyMethod(ScalarExpression expr)
Executed when the containsKey() method is found in a query filter. |
BooleanExpression |
containsMethod(ScalarExpression expr)
Executed when a contains() method is found in a query filter. |
BooleanExpression |
containsValueMethod(ScalarExpression expr)
Executed when the containsValue() method is found in a query filter. |
ScalarExpression |
getMethod(ScalarExpression expr)
Method to get a value from the Map for a key |
BooleanExpression |
isEmptyMethod()
Return the BooleanExpression for a query filter in the form "map.isEmpty()". |
NumericExpression |
sizeMethod()
Executed when the size() method is found in a query filter. |
StatementText |
toStatementText(int mode)
Method to return the statement text. |
Methods inherited from class org.jpox.store.expression.ScalarExpression |
accessField, add, and, as, callMethod, cast, com, div, encloseWithInParentheses, eor, eq, equals, getAlias, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, gt, gteq, in, instanceOf, ior, lt, lteq, mod, mul, neg, not, noteq, sub, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MapExpression(QueryExpression qs, JavaTypeMapping mapping, LogicSetExpression te, MapStore mapStore, java.lang.String fieldName)
qs
- The Query Statementmapping
- The java field mappingte
- The Table ExpressionmapStore
- the backing store.fieldName
- Name of the field for the map.Method Detail |
public NumericExpression sizeMethod()
public BooleanExpression containsKeyMethod(ScalarExpression expr)
expr
- The ScalarExpression param for map.containsKey(...).
public BooleanExpression containsEntryMethod(ScalarExpression keyExpr, ScalarExpression valueExpr)
keyExpr
- The ScalarExpression param for map.containsEntry(...).valueExpr
- The ScalarExpression param for map.containsEntry(...).
public BooleanExpression containsMethod(ScalarExpression expr)
expr
- The ScalarExpression param for map.contains(...).
public BooleanExpression containsValueMethod(ScalarExpression expr)
expr
- The ScalarExpression param for map.containsValue(...).
public BooleanExpression isEmptyMethod()
public ScalarExpression getMethod(ScalarExpression expr)
expr
- The key argument expression
public StatementText toStatementText(int mode)
toStatementText
in class ScalarExpression
mode
- (0=PROJECTION;1=FILTER)
javax.jdo.JDOUserException
- since this object is inaccessible directly.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |