Class PagingResponseBuilder
- java.lang.Object
-
- org.eclipse.persistence.jpa.rs.features.FeatureResponseBuilderImpl
-
- org.eclipse.persistence.jpa.rs.features.paging.PagingResponseBuilder
-
- All Implemented Interfaces:
FeatureResponseBuilder
public class PagingResponseBuilder extends FeatureResponseBuilderImpl
FeatureResponseBuilder implementation used for pageable collections. Used in JPARS 2.0.- Author:
- gonural
- Since:
- EclipseLink 2.6.0.
-
-
Constructor Summary
Constructors Constructor Description PagingResponseBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
buildAttributeResponse(PersistenceContext context, java.util.Map<java.lang.String,java.lang.Object> queryParams, java.lang.String attribute, java.lang.Object results, javax.ws.rs.core.UriInfo uriInfo)
Builds the attribute response.java.lang.Object
buildReadAllQueryResponse(PersistenceContext context, java.util.Map<java.lang.String,java.lang.Object> queryParams, java.util.List<java.lang.Object> items, javax.ws.rs.core.UriInfo uriInfo)
Builds the read all query response.java.lang.Object
buildReportQueryResponse(PersistenceContext context, java.util.Map<java.lang.String,java.lang.Object> queryParams, java.util.List<java.lang.Object[]> results, java.util.List<org.eclipse.persistence.internal.queries.ReportItem> items, javax.ws.rs.core.UriInfo uriInfo)
Builds the report query response.-
Methods inherited from class org.eclipse.persistence.jpa.rs.features.FeatureResponseBuilderImpl
buildSingleEntityResponse, buildSingleResultQueryResponse, createShellJAXBElementList
-
-
-
-
Method Detail
-
buildReadAllQueryResponse
public java.lang.Object buildReadAllQueryResponse(PersistenceContext context, java.util.Map<java.lang.String,java.lang.Object> queryParams, java.util.List<java.lang.Object> items, javax.ws.rs.core.UriInfo uriInfo)
Builds the read all query response.- Specified by:
buildReadAllQueryResponse
in interfaceFeatureResponseBuilder
- Overrides:
buildReadAllQueryResponse
in classFeatureResponseBuilderImpl
- Parameters:
context
- the contextqueryParams
- the query paramsitems
- the itemsuriInfo
- the uri info- Returns:
- the object
-
buildReportQueryResponse
public java.lang.Object buildReportQueryResponse(PersistenceContext context, java.util.Map<java.lang.String,java.lang.Object> queryParams, java.util.List<java.lang.Object[]> results, java.util.List<org.eclipse.persistence.internal.queries.ReportItem> items, javax.ws.rs.core.UriInfo uriInfo)
Builds the report query response.- Specified by:
buildReportQueryResponse
in interfaceFeatureResponseBuilder
- Overrides:
buildReportQueryResponse
in classFeatureResponseBuilderImpl
- Parameters:
context
- the contextqueryParams
- the query paramsresults
- the resultsitems
- the itemsuriInfo
- the uri info- Returns:
- the object
-
buildAttributeResponse
public java.lang.Object buildAttributeResponse(PersistenceContext context, java.util.Map<java.lang.String,java.lang.Object> queryParams, java.lang.String attribute, java.lang.Object results, javax.ws.rs.core.UriInfo uriInfo)
Builds the attribute response.- Specified by:
buildAttributeResponse
in interfaceFeatureResponseBuilder
- Overrides:
buildAttributeResponse
in classFeatureResponseBuilderImpl
- Parameters:
context
- the contextqueryParams
- the query paramsattribute
- the attributeresults
- the resultsuriInfo
- the uri info- Returns:
- the object
-
-