Class FeatureResponseBuilderImpl

    • 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 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FeatureResponseBuilderImpl

        public FeatureResponseBuilderImpl()
    • 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 interface FeatureResponseBuilder
        Parameters:
        context - the context
        queryParams - the query params
        items - the items
        uriInfo - 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 interface FeatureResponseBuilder
        Parameters:
        context - the context
        queryParams - the query params
        results - the results
        items - the items
        uriInfo - 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 result,
                                                       javax.ws.rs.core.UriInfo uriInfo)
        Builds the attribute response.
        Specified by:
        buildAttributeResponse in interface FeatureResponseBuilder
        Parameters:
        context - the context
        queryParams - the query params
        attribute - the attribute
        result - the results
        uriInfo - the uri info
        Returns:
        the object
      • buildSingleResultQueryResponse

        public 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.
        Specified by:
        buildSingleResultQueryResponse in interface FeatureResponseBuilder
        Parameters:
        context - the context
        queryParams - the query params
        result - the result
        items - the report items (result of ReportQuery)
        uriInfo - the uri info
        Returns:
        the response
      • buildSingleEntityResponse

        public 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.
        Specified by:
        buildSingleEntityResponse in interface FeatureResponseBuilder
        Parameters:
        context - the context
        queryParams - the query params
        result - the result
        uriInfo - the uri info
        Returns:
        the object
      • createShellJAXBElementList

        public 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.
        Parameters:
        reportItems - the report items
        record - the record
        Returns:
        the list. Returns an empty list if reportItems is null or empty.