Interface PluralExpression<C,E>
- All Superinterfaces:
Expression<C>, Selection<C>, TupleElement<C>
Type for collection query expressions.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionCreate a predicate that tests whether an element is a member of this collection.contains(Expression<? extends E> elem) Create a predicate that tests whether an element is a member of this collection.isEmpty()Create a predicate that tests whether this collection is empty.Create a predicate that tests whether this collection is not empty.notContains(E elem) Create a predicate that tests whether an element is not a member of this collection.notContains(Expression<? extends E> elem) Create a predicate that tests whether an element is not a member of this collection.size()Create an expression that tests the size of this collection.Methods inherited from interface Expression
as, cast, coalesce, coalesce, count, countDistinct, equalTo, equalTo, in, in, in, in, in, isMember, isNotMember, isNotNull, isNull, notEqualTo, notEqualTo, nullif, nullif, selectCaseMethods inherited from interface Selection
alias, getCompoundSelectionItems, isCompoundSelectionMethods inherited from interface TupleElement
getAlias, getJavaType
-
Method Details
-
isEmpty
Predicate isEmpty()Create a predicate that tests whether this collection is empty.- Returns:
- is-empty predicate
- See Also:
-
isNotEmpty
Predicate isNotEmpty()Create a predicate that tests whether this collection is not empty.- Returns:
- is-not-empty predicate
- See Also:
-
size
NumericExpression<Integer> size()Create an expression that tests the size of this collection.- Returns:
- size expression
- See Also:
-
contains
Create a predicate that tests whether an element is a member of this collection. If the collection is empty, the predicate will be false.- Parameters:
elem- element expression- Returns:
- is-member predicate
-
contains
-
notContains
Create a predicate that tests whether an element is not a member of this collection. If the collection is empty, the predicate will be true.- Parameters:
elem- element expression- Returns:
- is-not-member predicate
-
notContains
-