|
EclipseLink 2.0.0_ 2.0.0.v20090626-r4569 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Tuple
Interface for extracting the select list items from a query result tuple.
| Method Summary | ||
|---|---|---|
java.lang.Object |
get(int i)
Get the value of the element at the specified position in the result tuple. |
|
|
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. |
|
|
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. |
|
|
get(TupleElement<X> tupleElement)
Get the value of the specified result element. |
|
java.util.List<TupleElement<?>> |
getElements()
Return the elements of the tuple |
|
java.lang.Object[] |
toArray()
Return the values of the result tuple as an array. |
|
| Method Detail |
|---|
<X> X get(TupleElement<X> tupleElement)
resultElement - tuple result element
IllegalArgument - exception if result element
does not correspond to an element in the
query result tuple
<X> X get(java.lang.String alias,
java.lang.Class<X> type)
alias - alias assigned to result element
IllegalArgument - exception if alias
does not correspond to an element in the
query tuple result or type is incorrectjava.lang.Object get(java.lang.String alias)
alias - alias assigned to tuple element
java.lang.IllegalArgumentException - if alias
does not correspond to an element in the
query result tuple
<X> X get(int i,
java.lang.Class<X> type)
i - position in result tupletype - type of the result element
IllegalArgument - exception if i exceeds
length of result tuple or type is incorrectjava.lang.Object get(int i)
i - position in result tuple
IllegalArgument - exception if i exceeds
length of result listjava.lang.Object[] toArray()
java.util.List<TupleElement<?>> getElements()
|
EclipseLink 2.0.0_ 2.0.0.v20090626-r4569 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||