Class PagingResponseBuilder
java.lang.Object
org.eclipse.persistence.jpa.rs.features.FeatureResponseBuilderImpl
org.eclipse.persistence.jpa.rs.features.paging.PagingResponseBuilder
- All Implemented Interfaces:
FeatureResponseBuilder
FeatureResponseBuilder implementation used for pageable collections. Used in JPARS 2.0.
- Since:
- EclipseLink 2.6.0.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildAttributeResponse
(PersistenceContext context, Map<String, Object> queryParams, String attribute, Object results, UriInfo uriInfo) Builds the attribute response.buildReadAllQueryResponse
(PersistenceContext context, Map<String, Object> queryParams, List<Object> items, UriInfo uriInfo) Builds the read all query response.buildReportQueryResponse
(PersistenceContext context, Map<String, Object> queryParams, List<Object[]> results, List<ReportItem> items, UriInfo uriInfo) Builds the report query response.Methods inherited from class org.eclipse.persistence.jpa.rs.features.FeatureResponseBuilderImpl
buildSingleEntityResponse, buildSingleResultQueryResponse, createShellJAXBElementList
-
Constructor Details
-
PagingResponseBuilder
public PagingResponseBuilder()
-
-
Method Details
-
buildReadAllQueryResponse
public Object buildReadAllQueryResponse(PersistenceContext context, Map<String, Object> queryParams, List<Object> items, UriInfo uriInfo) Description copied from interface:FeatureResponseBuilder
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 Object buildReportQueryResponse(PersistenceContext context, Map<String, Object> queryParams, List<Object[]> results, List<ReportItem> items, UriInfo uriInfo) Description copied from interface:FeatureResponseBuilder
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 Object buildAttributeResponse(PersistenceContext context, Map<String, Object> queryParams, String attribute, Object results, UriInfo uriInfo) Description copied from interface:FeatureResponseBuilder
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
-