public class TupleImpl
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected ReportQueryResult |
rqr |
protected java.util.List<? super <any>> |
selections |
| Constructor and Description |
|---|
TupleImpl(java.util.List<? super <any>> selections,
ReportQueryResult rqr) |
| Modifier and Type | Method and Description |
|---|---|
<X> X |
get(<any> tupleElement)
Get the value of the specified result element.
|
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.
|
java.util.List<<any>> |
getElements()
Return the elements of the tuple
|
java.lang.Object[] |
toArray()
Return the values of the result tuple as an array.
|
protected java.util.List<? super <any>> selections
protected ReportQueryResult rqr
public TupleImpl(java.util.List<? super <any>> selections,
ReportQueryResult rqr)
public <X> X get(<any> tupleElement)
tupleElement - 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)
alias - 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)
alias - 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)
i - 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)
i - position in result tuplejava.lang.IllegalArgumentException - if i exceeds
length of result listpublic java.lang.Object[] toArray()
public java.util.List<<any>> getElements()