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
Constructors -
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:FeatureResponseBuilderBuilds the read all query response.- Specified by:
buildReadAllQueryResponsein interfaceFeatureResponseBuilder- Overrides:
buildReadAllQueryResponsein 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:FeatureResponseBuilderBuilds the report query response.- Specified by:
buildReportQueryResponsein interfaceFeatureResponseBuilder- Overrides:
buildReportQueryResponsein 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:FeatureResponseBuilderBuilds the attribute response.- Specified by:
buildAttributeResponsein interfaceFeatureResponseBuilder- Overrides:
buildAttributeResponsein classFeatureResponseBuilderImpl- Parameters:
context- the contextqueryParams- the query paramsattribute- the attributeresults- the resultsuriInfo- the uri info- Returns:
- the object
-