public class FeatureResponseBuilderImpl extends java.lang.Object implements FeatureResponseBuilder
Constructor and Description |
---|
FeatureResponseBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
buildAttributeResponse(PersistenceContext context,
java.util.Map<java.lang.String,java.lang.Object> queryParams,
java.lang.String attribute,
java.lang.Object result,
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.
|
java.lang.Object |
buildSingleEntityResponse(PersistenceContext context,
java.util.Map<java.lang.String,java.lang.Object> queryParams,
java.lang.Object result,
javax.ws.rs.core.UriInfo uriInfo)
Builds the single entity response.
|
java.lang.Object |
buildSingleResultQueryResponse(PersistenceContext context,
java.util.Map<java.lang.String,java.lang.Object> queryParams,
java.lang.Object result,
java.util.List<org.eclipse.persistence.internal.queries.ReportItem> items,
javax.ws.rs.core.UriInfo uriInfo)
Builds the single result query response.
|
java.util.List<JAXBElement> |
createShellJAXBElementList(java.util.List<org.eclipse.persistence.internal.queries.ReportItem> reportItems,
java.lang.Object record)
Creates the shell jaxb element list.
|
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)
buildReadAllQueryResponse
in interface FeatureResponseBuilder
context
- the contextqueryParams
- the query paramsitems
- the itemsuriInfo
- the uri infopublic 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)
buildReportQueryResponse
in interface FeatureResponseBuilder
context
- the contextqueryParams
- the query paramsresults
- the resultsitems
- the itemsuriInfo
- the uri infopublic java.lang.Object buildAttributeResponse(PersistenceContext context, java.util.Map<java.lang.String,java.lang.Object> queryParams, java.lang.String attribute, java.lang.Object result, javax.ws.rs.core.UriInfo uriInfo)
buildAttributeResponse
in interface FeatureResponseBuilder
context
- the contextqueryParams
- the query paramsattribute
- the attributeresult
- the resultsuriInfo
- the uri infopublic java.lang.Object buildSingleResultQueryResponse(PersistenceContext context, java.util.Map<java.lang.String,java.lang.Object> queryParams, java.lang.Object result, java.util.List<org.eclipse.persistence.internal.queries.ReportItem> items, javax.ws.rs.core.UriInfo uriInfo)
buildSingleResultQueryResponse
in interface FeatureResponseBuilder
context
- the contextqueryParams
- the query paramsresult
- the resultitems
- the report items (result of ReportQuery)uriInfo
- the uri infopublic java.lang.Object buildSingleEntityResponse(PersistenceContext context, java.util.Map<java.lang.String,java.lang.Object> queryParams, java.lang.Object result, javax.ws.rs.core.UriInfo uriInfo)
buildSingleEntityResponse
in interface FeatureResponseBuilder
context
- the contextqueryParams
- the query paramsresult
- the resulturiInfo
- the uri infopublic java.util.List<JAXBElement> createShellJAXBElementList(java.util.List<org.eclipse.persistence.internal.queries.ReportItem> reportItems, java.lang.Object record)
reportItems
- the report itemsrecord
- the record