|
Oracle® Fusion Middleware Java API Reference for EclipseLink 11g Release 1 (11.1.1) E26376-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Tuple
Interface for extracting the elements of a query result tuple.
TupleElement
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 element to which the specified alias has been assigned. |
|
|
get(TupleElement<X> tupleElement) Get the value of the specified tuple element. |
|
java.util.List<TupleElement<?>> |
getElements() Return the tuple elements. |
|
java.lang.Object[] |
toArray() Return the values of the result tuple elements as an array. |
Method Detail |
---|
<X> X get(TupleElement<X> tupleElement)
tupleElement
- tuple elementjava.lang.IllegalArgumentException
- if tuple 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 tuple elementtype
- of the tuple elementjava.lang.IllegalArgumentException
- if alias does not correspond to an element in the query result tuple or element cannot be assigned to the specified typejava.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 tuple<X> X get(int i, java.lang.Class<X> type)
i
- position in result tupletype
- type of the tuple elementjava.lang.IllegalArgumentException
- if i exceeds length of result tuple or element cannot be assigned to the specified typejava.lang.Object get(int i)
i
- position in result tuplejava.lang.IllegalArgumentException
- if i exceeds length of result tuplejava.lang.Object[] toArray()
java.util.List<TupleElement<?>> getElements()
|
Oracle® Fusion Middleware Java API Reference for EclipseLink 11g Release 1 (11.1.1) E26376-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |