
org.eclipse.persistence.jpa.rs.features.FeatureResponseBuilder Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2013, 2015 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* gonural - initial implementation
* 2014-09-01-2.6.0 Dmitry Kornilov
* - Added buildSingleResultQueryResponse method.
******************************************************************************/
package org.eclipse.persistence.jpa.rs.features;
import org.eclipse.persistence.internal.queries.ReportItem;
import org.eclipse.persistence.jpa.rs.PersistenceContext;
import javax.ws.rs.core.UriInfo;
import java.util.List;
import java.util.Map;
/**
* Common interface for all response builders.
*
* @author gonural
*/
public interface FeatureResponseBuilder {
/**
* Builds the read all query response.
*
* @param context the context
* @param queryParams the query params
* @param items the items
* @param uriInfo the uri info
* @return the object
*/
Object buildReadAllQueryResponse(PersistenceContext context, Map queryParams, List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy