Jakarta Persistence (JPA) Interface
jakarta.persistence.Tuple
Interface for extracting the elements of a query result tuple.
- See Also:
- Since:
- Jakarta Persistence (JPA) 2.0
Public Instance Methods
- Parameters:
tupleElement- tuple element
- Returns:
- value of tuple element.
- Throws:
- if tuple element does not correspond to an element in the query result tuple.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
alias- alias assigned to tuple elementtype- of the tuple element
- Returns:
- value of the tuple element.
- Throws:
- if alias does not correspond to an element in the query result tuple or element cannot be assigned to the specified type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Parameters:
alias- alias assigned to tuple element
- Returns:
- value of the tuple element.
- Throws:
- if alias does not correspond to an element in the query result tuple.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
The first position is 0.
- Parameters:
i- position in result tupletype- type of the tuple element
- Returns:
- value of the tuple element.
- Throws:
- if i exceeds length of result tuple or element cannot be assigned to the specified type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
The first position is 0.
- Parameters:
i- position in result tuple
- Returns:
- value of the tuple element.
- Throws:
- if i exceeds length of result tuple.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0
- Returns:
- tuple elements.
- Since:
- Jakarta Persistence (JPA) 1.0
Object[] toArray()- Returns:
- tuple element values.
- Since:
- Jakarta Persistence (JPA) 1.0