public class TupleImpl extends Object implements jakarta.persistence.Tuple, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected ReportQueryResult |
rqr |
protected List<? super jakarta.persistence.criteria.Selection<?>> |
selections |
| Constructor and Description |
|---|
TupleImpl(List<? super jakarta.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(jakarta.persistence.TupleElement<X> tupleElement)
Get the value of the specified result element.
|
List<jakarta.persistence.TupleElement<?>> |
getElements()
Return the elements of the tuple
|
Object[] |
toArray()
Return the values of the result tuple as an array.
|
protected List<? super jakarta.persistence.criteria.Selection<?>> selections
protected ReportQueryResult rqr
public TupleImpl(List<? super jakarta.persistence.criteria.Selection<?>> selections, ReportQueryResult rqr)
public <X> X get(jakarta.persistence.TupleElement<X> tupleElement)
get in interface jakarta.persistence.TupletupleElement - 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 jakarta.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 jakarta.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 jakarta.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 jakarta.persistence.Tuplei - position in result tupleIllegalArgumentException - if i exceeds
length of result listpublic Object[] toArray()
toArray in interface jakarta.persistence.Tuplepublic List<jakarta.persistence.TupleElement<?>> getElements()
getElements in interface jakarta.persistence.TupleCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.