Jakarta Persistence (JPA) Interface
jakarta.persistence.criteria.CriteriaBuilder.SimpleCase<C,R>
- Super Interfaces:
Expression<T>,Selection<T>,TupleElement<X>
Interface used to build simple case expressions. Case conditions are evaluated in the order in which they are specified.
- Since:
- Jakarta Persistence (JPA) 1.0
Public Instance Methods
Once assigned, an alias cannot be changed or reassigned. Returns the same selection item.
Inherited from
Selection<X>- Parameters:
name- alias
- Returns:
- selection item.
- Since:
- Jakarta Persistence (JPA) 1.0
Unlike
Expression.cast, this method does not cause type conversion: the runtime type is not changed. Warning: may result in a runtime failure.
Inherited from
Expression<T>- Parameters:
type- intended type of the expression
- Returns:
- new expression of the given type.
- See Also:
- Since:
- Jakarta Persistence (JPA) 1.0
Unlike
Expression.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.
Inherited from
Expression<T>- Parameters:
type- a basic type
- Returns:
- a scalar expression of the given basic type.
- Since:
- Jakarta Persistence (JPA) 3.2
Inherited from
Expression<T>- Parameters:
value- expression to be tested against
- Returns:
- predicate testing for equality.
- Since:
- Jakarta Persistence (JPA) 3.2
Inherited from
Expression<T>- Parameters:
value- value to be tested against
- Returns:
- predicate testing for equality.
- Since:
- Jakarta Persistence (JPA) 3.2
String getAlias()Modifications to the list do not affect the query.
Inherited from
Selection<X>- Returns:
- list of selection items.
- Throws:
- if selection is not a compound selection.IllegalStateException
- Since:
- Jakarta Persistence (JPA) 1.0
- Returns:
- expression.
- Since:
- Jakarta Persistence (JPA) 1.0
Class<? extends X> getJavaType()Inherited from
TupleElement<X>- Returns:
- the Java type of the tuple element.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
Expression<T>- Parameters:
values- values to be tested against
- Returns:
- predicate testing for membership.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
Expression<T>- Parameters:
values- expressions to be tested against
- Returns:
- predicate testing for membership.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
Expression<T>- Parameters:
values- collection of values to be tested against
- Returns:
- predicate testing for membership.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
Expression<T>- Parameters:
values- expression corresponding to collection to be tested against
- Returns:
- predicate testing for membership.
- Since:
- Jakarta Persistence (JPA) 1.0
boolean isCompoundSelection()Inherited from
Selection<X>- Returns:
- boolean indicating whether the selection is a compound selection.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
Expression<T>- Returns:
- predicate testing whether the expression is not null.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
Expression<T>- Returns:
- predicate testing whether the expression is null.
- Since:
- Jakarta Persistence (JPA) 1.0
Inherited from
Expression<T>- Parameters:
value- expression to be tested against
- Returns:
- predicate testing for inequality.
- Since:
- Jakarta Persistence (JPA) 3.2
Inherited from
Expression<T>- Parameters:
value- value to be tested against
- Returns:
- predicate testing for inequality.
- Since:
- Jakarta Persistence (JPA) 3.2
- Parameters:
result- "else" result
- Returns:
- expression.
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
result- "else" result expression
- Returns:
- expression.
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
result- "then" result valuecondition- "when" condition
- Returns:
- simple case expression.
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
result- "then" result expressioncondition- "when" condition
- Returns:
- simple case expression.
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
result- "then" result valuecondition- "when" condition
- Returns:
- simple case expression.
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
result- "then" result expressioncondition- "when" condition
- Returns:
- simple case expression.
- Since:
- Jakarta Persistence (JPA) 1.0