|
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 Result
Interface for extracting the result items from a typed query result.
| Method Summary | ||
|---|---|---|
java.lang.Object |
get(int i)
Get the value of the item at the specified position in the result list. |
|
|
get(int i,
java.lang.Class<X> type)
Get the value of the item at the specified position in the result list. |
|
|
get(ResultItem<X> resultItem)
Get the value of the specified result item. |
|
|
get(java.lang.String alias,
java.lang.Class<X> type)
Get the value of the result list item to which the specified alias has been assigned. |
|
java.lang.Object[] |
toArray()
Return the values of the result list items as an array. |
|
| Method Detail |
|---|
<X> X get(ResultItem<X> resultItem)
resultItem - result list item
IllegalArgument - exception if result item does not correspond to an item in
the query result
<X> X get(java.lang.String alias,
java.lang.Class<X> type)
alias - alias assigned to result list item
IllegalArgument - exception if alias does not correspond to an item in the
query result or type is incorrect
<X> X get(int i,
java.lang.Class<X> type)
i - position in result listtype - type of the result list item
IllegalArgument - exception if i exceeds length of result list of type is
incorrectjava.lang.Object get(int i)
i - position in result list
IllegalArgument - exception if i exceeds length of result listjava.lang.Object[] toArray()
|
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 | |||||||||