public class TupleImpl extends Object implements javax.persistence.Tuple, Serializable
| Constructor and Description |
|---|
TupleImpl(List<? super javax.persistence.criteria.Selection<?>> selections,
ReportQueryResult rqr) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int i)
Get the value of the element at the specified
position in the result tuple.
|
<X> X |
get(int i,
Class<X> type)
Get the value of the element at the specified
position in the result tuple.
|
Object |
get(String alias)
Get the value of the tuple element to which the
specified alias has been assigned.
|
<X> X |
get(String alias,
Class<X> type)
Get the value of the tuple result element to which the
specified alias has been assigned.
|
<X> X |
get(javax.persistence.TupleElement<X> tupleElement)
Get the value of the specified result element.
|
List<javax.persistence.TupleElement<?>> |
getElements()
Return the elements of the tuple
|
Object[] |
toArray()
Return the values of the result tuple as an array.
|
public TupleImpl(List<? super javax.persistence.criteria.Selection<?>> selections, ReportQueryResult rqr)
public <X> X get(javax.persistence.TupleElement<X> tupleElement)
get in interface javax.persistence.TupleresultElement - tuple result elementIllegalArgumentException - if result element
does not correspond to an element in the
query result tuplepublic <X> X get(String alias, Class<X> type)
get in interface javax.persistence.Tuplealias - alias assigned to result elementIllegalArgumentException - if alias
does not correspond to an element in the
query tuple result or type is incorrectpublic Object get(String alias)
get in interface javax.persistence.Tuplealias - alias assigned to tuple elementIllegalArgumentException - if alias
does not correspond to an element in the
query result tuplepublic <X> X get(int i,
Class<X> type)
get in interface javax.persistence.Tuplei - position in result tupletype - type of the result elementIllegalArgumentException - if i exceeds
length of result tuple or type is incorrectpublic Object get(int i)
get in interface javax.persistence.Tuplei - position in result tupleIllegalArgumentException - if i exceeds
length of result listpublic Object[] toArray()
toArray in interface javax.persistence.Tuplepublic List<javax.persistence.TupleElement<?>> getElements()
getElements in interface javax.persistence.TupleEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference