public interface Tuple
| 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 element to which the specified alias has been assigned.
|
<X> X |
get(TupleElement<X> tupleElement)
Get the value of the specified tuple element.
|
List<TupleElement<?>> |
getElements()
Return the tuple elements.
|
Object[] |
toArray()
Return the values of the result tuple elements as an array.
|
Object get(int i)
i - position in result tupleIllegalArgumentException - if i exceeds length of result tuple<X> X get(int i,
Class<X> type)
X - the type of the tuple elementi - position in result tupletype - type of the tuple elementIllegalArgumentException - if i exceeds length of result tuple or element cannot be assigned to the specified typeObject get(String alias)
alias - alias assigned to tuple elementIllegalArgumentException - if alias does not correspond to an element in the query result tuple<X> X get(String alias, Class<X> type)
X - the type of the tuple elementalias - alias assigned to tuple elementtype - of the tuple elementIllegalArgumentException - if alias does not correspond to an element in the query result tuple or element cannot be assigned to the specified type<X> X get(TupleElement<X> tupleElement)
X - the type of the tuple elementtupleElement - tuple elementIllegalArgumentException - if tuple element does not correspond to an element in the query result tupleList<TupleElement<?>> getElements()
Object[] toArray()
Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.