ParameterExpression
- Type Parameters:
<T>
- the type of the parameter expression
- Super Interfaces:
Expression<T>
,Parameter<T>
,Selection<T>
,TupleElement<T>
Type of criteria query parameter expressions.
- Since:
- JPA 2.0
Public Methods
This method does not cause type conversion: the runtime type is not changed. Warning: may result in a runtime failure.
- Parameters:
type
- intended type of the expression
- Return:
- new expression of the given type
- Inherited from:
Expression<T>
- Since:
- JPA 2.0
Class<T> getParameterType()
Values bound to the parameter must be assignable to this type. This method is required to be supported for criteria queries only. Applications that use this method for Java Persistence query language queries and native queries will not be portable.
- Return:
- the Java type of the parameter
- Throws:
- IllegalStateException - if invoked on a parameter obtained from a Java persistence query language query or native query when the implementation does not support this use
- Inherited from:
Parameter<T>
- Since:
- JPA 2.0
Integer getPosition()
- Parameters:
values
- collection of values to be tested against
- Return:
- predicate testing for membership
- Inherited from:
Expression<T>
- Since:
- JPA 2.0
- Parameters:
values
- expressions to be tested against
- Return:
- predicate testing for membership
- Inherited from:
Expression<T>
- Since:
- JPA 2.0
- Parameters:
values
- expression corresponding to collection to be tested against
- Return:
- predicate testing for membership
- Inherited from:
Expression<T>
- Since:
- JPA 2.0
- Parameters:
values
- values to be tested against
- Return:
- predicate testing for membership
- Inherited from:
Expression<T>
- Since:
- JPA 2.0
- Return:
- predicate testing whether the expression is not null
- Inherited from:
Expression<T>
- Since:
- JPA 2.0