EclipseLink 2.0.0_ 2.0.0.v20090626-r4569 API Reference

javax.persistence.criteria
Interface Expression<T>

Type Parameters:
T - the type of the expression
All Superinterfaces:
Selection<T>, TupleElement<T>
All Known Subinterfaces:
CollectionJoin<Z,E>, From<Z,X>, Join<Z,X>, ListJoin<Z,E>, MapJoin<Z,K,V>, ParameterExpression<T>, Path<X>, PluralJoin<Z,C,E>, Predicate, QueryBuilder.Case<R>, QueryBuilder.Coalesce<T>, QueryBuilder.In<T>, QueryBuilder.SimpleCase<C,R>, Root<X>, SetJoin<Z,E>, Subquery<T>

public interface Expression<T>
extends Selection<T>

Type for query expressions.


Method Summary
<X> Expression<X>
as(java.lang.Class<X> type)
          Perform a typecast upon the expression.
 Predicate in(java.util.Collection<?> values)
          Apply a predicate to test whether the expression is a member of the collection.
 Predicate in(Expression<?>... values)
          Apply a predicate to test whether the expression is a member of the argument list.
 Predicate in(Expression<java.util.Collection<?>> values)
          Apply a predicate to test whether the expression is a member of the collection.
 Predicate in(java.lang.Object... values)
          Apply a predicate to test whether the expression is a member of the argument list.
 Predicate isNotNull()
          Apply a predicate to test whether the expression is not null.
 Predicate isNull()
          Apply a predicate to test whether the expression is null.
 
Methods inherited from interface javax.persistence.criteria.Selection
setAlias
 
Methods inherited from interface javax.persistence.TupleElement
getAlias, getJavaType
 

Method Detail

isNull

Predicate isNull()
Apply a predicate to test whether the expression is null.

Returns:
predicate testing whether the expression is null

isNotNull

Predicate isNotNull()
Apply a predicate to test whether the expression is not null.

Returns:
predicate testing whether the expression is not null.

in

Predicate in(java.lang.Object... values)
Apply a predicate to test whether the expression is a member of the argument list.

Parameters:
values -
Returns:
predicate testing for membership in the list

in

Predicate in(Expression<?>... values)
Apply a predicate to test whether the expression is a member of the argument list.

Parameters:
values -
Returns:
predicate testing for membership

in

Predicate in(java.util.Collection<?> values)
Apply a predicate to test whether the expression is a member of the collection.

Parameters:
values - collection
Returns:
predicate testing for membership

in

Predicate in(Expression<java.util.Collection<?>> values)
Apply a predicate to test whether the expression is a member of the collection.

Parameters:
values - expression corresponding to collection
Returns:
predicate testing for membership

as

<X> Expression<X> as(java.lang.Class<X> type)
Perform a typecast upon the expression. Warning: may result in a runtime failure.

Parameters:
type -
Returns:
expression

EclipseLink 2.0.0_ 2.0.0.v20090626-r4569 API Reference