Jakarta Persistence (JPA) Method

X get(
  String alias,
  Class<X> type
)


Get the value of the tuple element to which the specified alias has been assigned.
Parameters:
alias - alias assigned to tuple element
type - of the tuple element
Returns:
value of the tuple element.
Throws:
IllegalArgumentException - if alias does not correspond to an element in the query result tuple or element cannot be assigned to the specified type.
Since:
Jakarta Persistence (JPA) 1.0