|
|||||||||||
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.CollectionExpression
An expression that represents some collection field in a query candidate class, or a collection field in an object linked from the candidate class by navigation.
When navigated through using contains(expr), the elements of the collection are relationally joined onto the query statement.
As this is a Collection Expression it works equally for Sets and Lists, and we use CollectionStore as the backing store interface, so that ListStore and SetStore are equally applicable.
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 | |
CollectionExpression(QueryExpression qs,
JavaTypeMapping ownerMapping,
LogicSetExpression te,
CollectionStore collStore,
java.lang.String fieldName)
Constructor. |
Method Summary | |
BooleanExpression |
containsMethod(ScalarExpression expr)
Executed when the contains() method is found in a query filter. |
BooleanExpression |
eq(ScalarExpression expr)
Method to return the expression for comparing a collection with a value. |
BooleanExpression |
isEmptyMethod()
Return the BooleanExpression for a query filter in the form "collection.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, 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 CollectionExpression(QueryExpression qs, JavaTypeMapping ownerMapping, LogicSetExpression te, CollectionStore collStore, java.lang.String fieldName)
qs
- The Query StatementownerMapping
- The mapping to the owner of this collectionte
- The Table ExpressioncollStore
- the backing store.fieldName
- Name of the field for the collection.Method Detail |
public NumericExpression sizeMethod()
public BooleanExpression containsMethod(ScalarExpression expr)
expr
- The ScalarExpression passed as a parameter to contains().
public BooleanExpression isEmptyMethod()
public BooleanExpression eq(ScalarExpression expr)
eq
in class ScalarExpression
expr
- The value to compare with.
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 |