org.datanucleus.query.typesafe
Interface CollectionExpression<T extends java.util.Collection<E>,E>

Type Parameters:
T - Java type being represented here
E - Element type of the collection being represented here
All Superinterfaces:
Expression<T>
All Known Subinterfaces:
ListExpression<T,E>
All Known Implementing Classes:
CollectionExpressionImpl, ListExpressionImpl

public interface CollectionExpression<T extends java.util.Collection<E>,E>
extends Expression<T>

Representation of a collection in a query.


Method Summary
 BooleanExpression contains(E elem)
          Method returning whether the specified element is contained in this collection.
 BooleanExpression contains(Expression expr)
          Method returning whether the specified elementexpression is contained in this collection.
 BooleanExpression isEmpty()
          Method returning whether the collection is empty.
 NumericExpression<java.lang.Integer> size()
          Method returning an expression for the size of the collection
 
Methods inherited from interface org.datanucleus.query.typesafe.Expression
cast, count, countDistinct, eq, eq, instanceOf, ne, ne
 

Method Detail

contains

BooleanExpression contains(Expression expr)
Method returning whether the specified elementexpression is contained in this collection.

Parameters:
expr - The element expression
Returns:
Whether it is contained here

contains

BooleanExpression contains(E elem)
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<java.lang.Integer> size()
Method returning an expression for the size of the collection

Returns:
The size


Copyright © 2011. All Rights Reserved.