All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.persistence.internal.jpa.querydef.TupleQuery Maven / Gradle / Ivy

There is a newer version: 5.0.0-B03
Show newest version
/*
 * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0,
 * or the Eclipse Distribution License v. 1.0 which is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
 */

package org.eclipse.persistence.internal.jpa.querydef;

import java.util.List;
import java.util.Vector;

import javax.persistence.criteria.Selection;

import org.eclipse.persistence.internal.sessions.AbstractRecord;
import org.eclipse.persistence.queries.ReportQuery;
import org.eclipse.persistence.queries.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 *

* * @see javax.persistence.criteria CriteriaQuery * * @author gyorke * @since EclipseLink 1.2 */ public class TupleQuery extends ReportQuery { protected List> selections; public TupleQuery(List> selections){ super(); this.selections = selections; } /** * INTERNAL: * Construct a result from a row. Either return a ReportQueryResult or just the attribute. */ @Override public Object buildObject(AbstractRecord row, Vector toManyJoinData) { return new TupleImpl(this.selections, new ReportQueryResult(this, row, toManyJoinData)); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy