Expression<T>
- Type Parameters:
<T>- the type of the expression
- Super Interfaces:
Selection<T>,TupleElement<T>
Type for query expressions.
- Since:
- JPA 2.0
The JPA Query Expressions (JPQL / Criteria) article explains how to use
Expression.Public Methods
Unlike as(), this method does result in a runtime type conversion.
Providers are required to support casting scalar expressions to String, and String expressions to Integer, Long, Float, and Double. Support for typecasts between other basic types is not required.
- Parameters:
type- a basic type
- Return:
- a scalar expression of the given basic type
- Since:
- JPA 3.2
- Parameters:
value- expression to be tested against
- Return:
- predicate testing for equality
- Since:
- JPA 3.2
- Parameters:
value- value to be tested against
- Return:
- predicate testing for equality
- Since:
- JPA 3.2
- Parameters:
values- collection of values to be tested against
- Return:
- predicate testing for membership
- Since:
- JPA 2.0
- Parameters:
values- expressions to be tested against
- Return:
- predicate testing for membership
- Since:
- JPA 2.0
- Parameters:
values- expression corresponding to collection to be tested against
- Return:
- predicate testing for membership
- Since:
- JPA 2.0
- Parameters:
values- values to be tested against
- Return:
- predicate testing for membership
- Since:
- JPA 2.0
- Parameters:
value- expression to be tested against
- Return:
- predicate testing for inequality
- Since:
- JPA 3.2
- Parameters:
value- value to be tested against
- Return:
- predicate testing for inequality
- Since:
- JPA 3.2