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

public Class TupleQuery

extends ReportQuery
Class Inheritance
Imports
java.util.List, .Vector, jakarta.persistence.criteria.Selection, org.eclipse.persistence.internal.sessions.AbstractRecord, org.eclipse.persistence.queries.ReportQuery, .ReportQueryResult

Purpose: This is a special subclass of the ReportQuery that constructs Tuple results.

Description: A subclass of ReportQuery this query type combines multiple selections into

Author
gyorke
Since
EclipseLink 1.2
See Also
CriteriaQuery

Field Summary

Modifier and TypeField and Description
protected List<? super Selection<?>>
Inherited from org.eclipse.persistence.queries.ReportQuery:
addToConstructorItemFIRST_PRIMARY_KEYFULL_PRIMARY_KEYgroupByExpressionshavingExpressionitemsnamesNO_PRIMARY_KEYreturnChoicereturnedKeysshouldRetrievePrimaryKeysShouldReturnArrayShouldReturnReportResultShouldReturnSingleAttributeShouldReturnSingleResultShouldReturnSingleValueShouldReturnWithoutReportQueryResultShouldSelectValue1

Constructor Summary

AccessConstructor and Description
public
TupleQuery(List<? super Selection<?>> selections)

Method Summary

Modifier and TypeMethod and Description
public Object
buildObject(AbstractRecord row, Vector<E>
All rows fetched by query. It is required to be not null.
toManyJoinData
)

Overrides org.eclipse.persistence.queries.ReportQuery.buildObject.

INTERNAL: Construct a result from a row.
Inherited from org.eclipse.persistence.queries.ReportQuery:
addAttributeaddAttributeaddAttributeaddAverageaddAverageaddAverageaddAverageaddConstructorReportItemaddCountaddCountaddCountaddCountaddCountaddFunctionItemaddGroupingaddGroupingaddItemaddItemaddItemaddMaximumaddMaximumaddMaximumaddMaximumaddMinimumaddMinimumaddMinimumaddMinimumaddStandardDeviationaddStandardDeviationaddSumaddSumaddSumaddSumaddVarianceaddVariancebeginAddingConstructorArgumentsbeginAddingConstructorArgumentsbuildObjectbuildObjectscheckEarlyReturnLocalcheckForCustomQueryclearItemsclonecopyReportItemsdontRetrievePrimaryKeysdontReturnSingleAttributedontReturnSingleResultdontReturnSingleValuedontReturnWithoutReportQueryResultendAddingToConstructorItemequalsexecuteDatabaseQueryextractRemoteResultgetDefaultRedirectorgetGroupByExpressionsgetHavingExpressiongetItemgetItemsgetNamesgetQueryExpressionsgetReturnTypehasGroupByExpressionsisReportQueryprepareprepareFetchGroupprepareFromQueryprepareObjectAttributeCountprepareSelectAllRowsprepareSubSelectreplaceValueHoldersInretrievePrimaryKeysreturnSingleAttributereturnSingleResultreturnSingleValuereturnWithoutReportQueryResultselectValue1setGroupByExpressionssetHavingExpressionsetItemssetLockModeTypesetNamessetReturnTypesetShouldRetrieveFirstPrimaryKeysetShouldRetrievePrimaryKeyssetShouldReturnSingleAttributesetShouldReturnSingleResultsetShouldReturnSingleValuesetShouldReturnWithoutReportQueryResultshouldRetrieveFirstPrimaryKeyshouldRetrievePrimaryKeysshouldReturnArrayshouldReturnSingleAttributeshouldReturnSingleResultshouldReturnSingleValueshouldReturnWithoutReportQueryResultshouldSelectValue1

Field Detail

selectionsback to summary
protected List<? super Selection<?>> selections

Constructor Detail

TupleQueryback to summary
public TupleQuery(List<? super Selection<?>> selections)

Method Detail

buildObjectback to summary
public Object buildObject(AbstractRecord row, Vector<E> toManyJoinData)

Overrides org.eclipse.persistence.queries.ReportQuery.buildObject.

INTERNAL: Construct a result from a row. Either return a ReportQueryResult or just the attribute.

Parameters
toManyJoinData:Vector<E>

Doc from org.eclipse.persistence.queries.ReportQuery.buildObject.

All rows fetched by query. It is required to be not null.

Annotations
@Override