org.datanucleus.jdo.query
Class CollectionExpressionImpl<T extends java.util.Collection<E>,E>

java.lang.Object
  extended by org.datanucleus.jdo.query.ExpressionImpl<T>
      extended by org.datanucleus.jdo.query.CollectionExpressionImpl<T,E>
All Implemented Interfaces:
CollectionExpression<T,E>, Expression<T>
Direct Known Subclasses:
ListExpressionImpl

public class CollectionExpressionImpl<T extends java.util.Collection<E>,E>
extends ExpressionImpl<T>
implements CollectionExpression<T,E>

Implementation of a CollectionExpression


Constructor Summary
CollectionExpressionImpl(java.lang.Class<T> cls, java.lang.String name, ExpressionType type)
           
CollectionExpressionImpl(PersistableExpression parent, java.lang.String name)
           
 
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 class org.datanucleus.jdo.query.ExpressionImpl
cast, count, countDistinct, eq, eq, getQueryExpression, instanceOf, isParameter, isVariable, ne, ne
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.datanucleus.query.typesafe.Expression
cast, count, countDistinct, eq, eq, instanceOf, ne, ne
 

Constructor Detail

CollectionExpressionImpl

public CollectionExpressionImpl(PersistableExpression parent,
                                java.lang.String name)

CollectionExpressionImpl

public CollectionExpressionImpl(java.lang.Class<T> cls,
                                java.lang.String name,
                                ExpressionType type)
Method Detail

contains

public BooleanExpression contains(E elem)
Description copied from interface: CollectionExpression
Method returning whether the specified element is contained in this collection.

Specified by:
contains in interface CollectionExpression<T extends java.util.Collection<E>,E>
Parameters:
elem - The element
Returns:
Whether it is contained here

contains

public BooleanExpression contains(Expression expr)
Description copied from interface: CollectionExpression
Method returning whether the specified elementexpression is contained in this collection.

Specified by:
contains in interface CollectionExpression<T extends java.util.Collection<E>,E>
Parameters:
expr - The element expression
Returns:
Whether it is contained here

isEmpty

public BooleanExpression isEmpty()
Description copied from interface: CollectionExpression
Method returning whether the collection is empty.

Specified by:
isEmpty in interface CollectionExpression<T extends java.util.Collection<E>,E>
Returns:
Whether it is empty

size

public NumericExpression<java.lang.Integer> size()
Description copied from interface: CollectionExpression
Method returning an expression for the size of the collection

Specified by:
size in interface CollectionExpression<T extends java.util.Collection<E>,E>
Returns:
The size


Copyright © 2011. All Rights Reserved.