About tuple

1-10 of 66Refresh
JPA Doc
94

javax.persistence.Tuple

javax.persistence Interface Tuple Interface for extracting the elements of a query result tuple ... position in the result tuple. 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 Returns: value of the tuple
JPA Doc
77

get(alias, type)

Method javax.persistence.Tuple X get(   String alias,   Class 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
JPA Doc
77

get(i, type)

Method javax.persistence.Tuple X get(   int i,   Class 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
JPA Doc
77

get(tupleElement)

Method javax.persistence.Tuple X get(   TupleElement tupleElement ) Get the value of the specified tuple element. Parameters: tupleElement - tuple element Returns: value of tuple element Throws: IllegalArgumentException - if tuple element does not correspond to an element in the query result tuple Since: JPA 2.0
JPA Doc
76

get(alias)

Method javax.persistence.Tuple Object get(   String alias ) Get the value of the tuple element to which the specified alias has been assigned. Parameters: alias - alias assigned to tuple element Returns: value of the tuple element Throws: IllegalArgumentException - if alias does not correspond to an element in the query result tuple Since: JPA 2.0
JPA Doc
76

get(i)

Method javax.persistence.Tuple Object get(   int i ) 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 Returns: value of the tuple element Throws: IllegalArgumentException - if i exceeds length of result tuple Since: JPA 2.0
JPA Doc
76

tuple(selections)

Method javax.persistence.criteria.CriteriaBuilder CompoundSelection<Tuple> tuple(   Selection... selections ) Create a tuple-valued selection item. Parameters: selections - selection items Returns: tuple-valued compound selection Throws: IllegalArgumentException - if an argument is a tuple- or array-valued selection item Since: JPA 2.0
JPA Doc
73

getElements()

Method javax.persistence.Tuple List> getElements() Return the tuple elements. Returns: tuple elements Since: JPA 2.0
JPA Doc
73

toArray()

Method javax.persistence.Tuple Object[] toArray() Return the values of the result tuple elements as an array. Returns: tuple element values Since: JPA 2.0
Manual
58

SELECT clause (JPQL / Criteria API)

- array, tuple and construct. CriteriaBuilder's array The following JPQL query: SELECT c.name, c ... : " + result[1]); } CriteriaBuilder's tuple The Tuple interface can be used as a clean alternative to Object[]: CriteriaQuery<Tuple> q = cb.createTupleQuery(); Root c = q.from(Country