public class CollectionExpressionImpl<T extends Collection<E>,E> extends ExpressionImpl<T> implements CollectionExpression<T,E>
Constructor and Description |
---|
CollectionExpressionImpl(Class<T> cls,
String name,
ExpressionType type) |
CollectionExpressionImpl(PersistableExpression parent,
String name) |
Modifier and Type | Method and Description |
---|---|
BooleanExpression |
contains(E elem)
Method returning whether the specified element is contained in this collection.
|
BooleanExpression |
contains(Expression<E> expr)
Method returning whether the specified elementexpression is contained in this collection.
|
BooleanExpression |
isEmpty()
Method returning whether the collection is empty.
|
NumericExpression<Integer> |
size()
Method returning an expression for the size of the collection
|
cast, count, countDistinct, eq, eq, getQueryExpression, instanceOf, isParameter, isVariable, ne, ne
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cast, count, countDistinct, eq, eq, instanceOf, ne, ne
public CollectionExpressionImpl(PersistableExpression parent, String name)
public CollectionExpressionImpl(Class<T> cls, String name, ExpressionType type)
public BooleanExpression contains(E elem)
CollectionExpression
contains
in interface CollectionExpression<T extends Collection<E>,E>
elem
- The elementpublic BooleanExpression contains(Expression<E> expr)
CollectionExpression
contains
in interface CollectionExpression<T extends Collection<E>,E>
expr
- The element expressionpublic BooleanExpression isEmpty()
CollectionExpression
isEmpty
in interface CollectionExpression<T extends Collection<E>,E>
public NumericExpression<Integer> size()
CollectionExpression
size
in interface CollectionExpression<T extends Collection<E>,E>
Copyright © 2017. All rights reserved.