| |
|
| java.lang.Object org.jpox.store.expression.ScalarExpression org.jpox.store.expression.CollectionExpression
CollectionExpression | public class CollectionExpression extends ScalarExpression (Code) | | 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.
version: $Revision: 1.33 $ |
CollectionExpression | public CollectionExpression(QueryExpression qs, JavaTypeMapping ownerMapping, LogicSetExpression te, CollectionStore collStore, String fieldName)(Code) | | Constructor.
Parameters: qs - The Query Statement Parameters: ownerMapping - The mapping to the owner of this collection Parameters: te - The Table Expression Parameters: collStore - the backing store. Parameters: fieldName - Name of the field for the collection. |
containsMethod | public BooleanExpression containsMethod(ScalarExpression expr)(Code) | | Executed when the contains() method is found in a query filter.
Parameters: expr - The ScalarExpression passed as a parameter to contains(). The BooleanExpression resulting from the contains() method. |
eq | public BooleanExpression eq(ScalarExpression expr)(Code) | | Method to return the expression for comparing a collection with a value.
JPOX only supports comparisons with null currently.
Parameters: expr - The value to compare with. The expression of equality |
isEmptyMethod | public BooleanExpression isEmptyMethod()(Code) | | Return the BooleanExpression for a query filter in the form "collection.isEmpty()".
The BooleanExpression for a query filter in the form "collection.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. |
|
|
|