Jakarta Persistence (JPA) Method

X get(
  int i,
  Class<X> type
)


Get the value of the element at the specified position in the result tuple. The first position is 0.
Parameters:
i - position in result tuple
type - type of the tuple element
Returns:
value of the tuple element.
Throws:
IllegalArgumentException - if i exceeds length of result tuple or element cannot be assigned to the specified type.
Since:
Jakarta Persistence (JPA) 1.0