Jakarta Persistence (JPA) Interface
jakarta.persistence.criteria.Selection<X>
- Type Parameters:
<X>- the type of the selection item
- Super Interfaces:
TupleElement<X>
The
Selection interface defines an item that is to be returned in a query result. - Since:
- Jakarta Persistence (JPA) 2.0
The SELECT clause (JPQL / Criteria API) article explains how to use
Selection.Public Instance Methods
Once assigned, an alias cannot be changed or reassigned. Returns the same selection item.
- Parameters:
name- alias
- Returns:
- selection item.
- Since:
- Jakarta Persistence (JPA) 1.0
String getAlias()Modifications to the list do not affect the query.
- Returns:
- list of selection items.
- Throws:
- if selection is not a compound selection.IllegalStateException
- 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
boolean isCompoundSelection()- Returns:
- boolean indicating whether the selection is a compound selection.
- Since:
- Jakarta Persistence (JPA) 1.0