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