javax.persistence.criteria.Selection - JPA interface
The Selection
interface defines an item that is to be returned in a query result.
- Since:
- JPA 2.0
Learn how to use JPA Criteria API's Selection in
Chapter 4 of the ObjectDB/JPA manual.
Assigns an alias to the selection item.
Assigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item.
- Parameters:
-
name
- alias
- Returns:
- selection item
- Since:
- JPA 2.0
Return the alias assigned to the tuple element or null, if no alias has been assigned.
Return the alias assigned to the tuple element or null, if no alias has been assigned.
- Returns:
- alias
- Since:
- JPA 2.0
Return the selection items composing a compound selection.
Return the selection items composing a compound selection. Modifications to the list do not affect the query.
- Returns:
- list of selection items
- Throws:
-
IllegalStateException
- if selection is not a compound selection
- Since:
- JPA 2.0
Return the Java type of the tuple element.
Return the Java type of the tuple element.
- Returns:
- the Java type of the tuple element
- Since:
- JPA 2.0
Whether the selection item is a compound selection.
Whether the selection item is a compound selection.
- Returns:
- boolean indicating whether the selection is a compound selection
- Since:
- JPA 2.0