Module org.eclipse.persistence.jpa
Class TupleImpl
java.lang.Object
org.eclipse.persistence.internal.jpa.querydef.TupleImpl
- All Implemented Interfaces:
Tuple
,Serializable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(int i) Get the value of the element at the specified position in the result tuple.<X> X
Get the value of the element at the specified position in the result tuple.<X> X
get
(TupleElement<X> tupleElement) Get the value of the specified result element.Get the value of the tuple element to which the specified alias has been assigned.<X> X
Get the value of the tuple result element to which the specified alias has been assigned.List
<TupleElement<?>> Return the elements of the tupleObject[]
toArray()
Return the values of the result tuple as an array.
-
Field Details
-
selections
-
rqr
-
-
Constructor Details
-
TupleImpl
-
-
Method Details
-
get
Get the value of the specified result element.- Specified by:
get
in interfaceTuple
- Parameters:
tupleElement
- tuple result element- Returns:
- value of result element
- Throws:
IllegalArgumentException
- if result element does not correspond to an element in the query result tuple
-
get
Get the value of the tuple result element to which the specified alias has been assigned.- Specified by:
get
in interfaceTuple
- Parameters:
alias
- alias assigned to result element- Returns:
- type of the result element
- Throws:
IllegalArgumentException
- if alias does not correspond to an element in the query tuple result or type is incorrect
-
get
Get the value of the tuple element to which the specified alias has been assigned.- Specified by:
get
in interfaceTuple
- Parameters:
alias
- alias assigned to tuple element- Returns:
- value of the tuple element
- Throws:
IllegalArgumentException
- if alias does not correspond to an element in the query result tuple
-
get
Get the value of the element at the specified position in the result tuple. The first position is 0.- Specified by:
get
in interfaceTuple
- Parameters:
i
- position in result tupletype
- type of the result element- Returns:
- value of the result element
- Throws:
IllegalArgumentException
- if i exceeds length of result tuple or type is incorrect
-
get
Get the value of the element at the specified position in the result tuple. The first position is 0.- Specified by:
get
in interfaceTuple
- Parameters:
i
- position in result tuple- Returns:
- value of the result element
- Throws:
IllegalArgumentException
- if i exceeds length of result list
-
toArray
Return the values of the result tuple as an array. -
getElements
Return the elements of the tuple- Specified by:
getElements
in interfaceTuple
-