Package javax.jdo.query
Interface CollectionExpression<T extends Collection<E>,E>
- Type Parameters:
T
- Java type being represented hereE
- Element type of the collection being represented here
- All Superinterfaces:
Expression<T>
- All Known Subinterfaces:
ListExpression<T,
E>
Representation of a collection in a query.
-
Method Summary
Modifier and TypeMethodDescriptionMethod returning whether the specified element is contained in this collection.contains
(Expression<E> expr) Method returning whether the specified element expression is contained in this collection.isEmpty()
Method returning whether the collection is empty.size()
Method returning an expression for the size of the collectionMethods inherited from interface javax.jdo.query.Expression
as, cast, count, countDistinct, eq, eq, instanceOf, ne, ne
-
Method Details
-
contains
Method returning whether the specified element expression is contained in this collection.- Parameters:
expr
- The element expression- Returns:
- Whether it is contained here
-
contains
Method returning whether the specified element is contained in this collection.- Parameters:
elem
- The element- Returns:
- Whether it is contained here
-
isEmpty
BooleanExpression isEmpty()Method returning whether the collection is empty.- Returns:
- Whether it is empty
-
size
NumericExpression<Integer> size()Method returning an expression for the size of the collection- Returns:
- The size
-