Top Fields Constructors Methods
org.eclipse.persistence.internal.jpa.querydef

public Class TupleImpl

extends Object
implements Tuple, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, jakarta.persistence.Tuple
Imports
java.io.Serializable, java.util.List, jakarta.persistence.Tuple, .TupleElement, jakarta.persistence.criteria.Selection, org.eclipse.persistence.internal.localization.ExceptionLocalization, org.eclipse.persistence.queries.ReportQueryResult

Field Summary

Modifier and TypeField and Description
protected ReportQueryResult
protected List<? super Selection<?>>

Constructor Summary

AccessConstructor and Description
public
TupleImpl(List<? super Selection<?>> selections, ReportQueryResult rqr)

Method Summary

Modifier and TypeMethod and Description
public <X> X

Returns:

value of result element
get
(TupleElement<X>
tuple result element
tupleElement
)

Implements jakarta.persistence.Tuple.get.

Get the value of the specified result element.
public <X> X

Returns:

type of the result element
get
(String
alias assigned to result element
alias
,
Class<X>
of the tuple element
type
)

Implements jakarta.persistence.Tuple.get.

Get the value of the tuple result element to which the specified alias has been assigned.
public Object

Returns:

value of the tuple element
get
(String
alias assigned to tuple element
alias
)

Implements jakarta.persistence.Tuple.get.

Get the value of the tuple element to which the specified alias has been assigned.
public <X> X

Returns:

value of the result element
get
(int
position in result tuple
i
,
Class<X>
type of the result element
type
)

Implements jakarta.persistence.Tuple.get.

Get the value of the element at the specified position in the result tuple.
public Object

Returns:

value of the result element
get
(int
position in result tuple
i
)

Implements jakarta.persistence.Tuple.get.

Get the value of the element at the specified position in the result tuple.
public List<TupleElement<?>>
getElements()

Implements jakarta.persistence.Tuple.getElements.

Return the elements of the tuple
public Object[]

Returns:

result element values
toArray
()

Implements jakarta.persistence.Tuple.toArray.

Return the values of the result tuple as an array.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

rqrback to summary
protected ReportQueryResult rqr
selectionsback to summary
protected List<? super Selection<?>> selections

Constructor Detail

TupleImplback to summary
public TupleImpl(List<? super Selection<?>> selections, ReportQueryResult rqr)

Method Detail

getback to summary
public <X> X get(TupleElement<X> tupleElement)

Implements jakarta.persistence.Tuple.get.

Get the value of the specified result element.

Parameters
tupleElement:TupleElement<X>

tuple result element

Returns:X

value of result element

Annotations
@Override
Exceptions
IllegalArgumentException:
if result element does not correspond to an element in the query result tuple
getback to summary
public <X> X get(String alias, Class<X> type)

Implements jakarta.persistence.Tuple.get.

Get the value of the tuple result element to which the specified alias has been assigned.

Parameters
alias:String

alias assigned to result element

type:Class<X>

Doc from jakarta.persistence.Tuple.get.

of the tuple element

Returns:X

type of the result element

Annotations
@Override
Exceptions
IllegalArgumentException:
if alias does not correspond to an element in the query tuple result or type is incorrect
getback to summary
public Object get(String alias)

Implements jakarta.persistence.Tuple.get.

Get the value of the tuple element to which the specified alias has been assigned.

Parameters
alias:String

alias assigned to tuple element

Returns:Object

value of the tuple element

Annotations
@Override
Exceptions
IllegalArgumentException:
if alias does not correspond to an element in the query result tuple
getback to summary
public <X> X get(int i, Class<X> type)

Implements jakarta.persistence.Tuple.get.

Get the value of the element at the specified position in the result tuple. The first position is 0.

Parameters
i:int

position in result tuple

type:Class<X>

type of the result element

Returns:X

value of the result element

Annotations
@Override
Exceptions
IllegalArgumentException:
if i exceeds length of result tuple or type is incorrect
getback to summary
public Object get(int i)

Implements jakarta.persistence.Tuple.get.

Get the value of the element at the specified position in the result tuple. The first position is 0.

Parameters
i:int

position in result tuple

Returns:Object

value of the result element

Annotations
@Override
Exceptions
IllegalArgumentException:
if i exceeds length of result list
getElementsback to summary
public List<TupleElement<?>> getElements()

Implements jakarta.persistence.Tuple.getElements.

Return the elements of the tuple

Returns:List<TupleElement<?>>

Doc from jakarta.persistence.Tuple.getElements.

tuple elements

Annotations
@Override
toArrayback to summary
public Object[] toArray()

Implements jakarta.persistence.Tuple.toArray.

Return the values of the result tuple as an array.

Returns:Object[]

result element values

Annotations
@Override