Class JPACountRequestProcessor
java.lang.Object
com.sap.olingo.jpa.processor.core.processor.JPACountRequestProcessor
- All Implemented Interfaces:
JPARequestProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.persistence.criteria.CriteriaBuilderprotected JPAServiceDebuggerprotected javax.persistence.EntityManagerprotected org.apache.olingo.server.api.ODataprotected JPAODataRequestContextAccessprotected com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAServiceDocumentprotected JPASerializerprotected JPAODataCRUDContextAccessprotected intprotected org.apache.olingo.server.api.uri.UriInfoResource -
Constructor Summary
ConstructorsConstructorDescriptionJPACountRequestProcessor(org.apache.olingo.server.api.OData odata, JPAODataCRUDContextAccess context, JPAODataRequestContextAccess requestContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.olingo.commons.api.data.EntityCollectioncountEntities(org.apache.olingo.server.api.ODataRequest request, org.apache.olingo.server.api.uri.UriInfoResource uriInfo)protected voidcreateSuccessResponce(org.apache.olingo.server.api.ODataResponse response, org.apache.olingo.commons.api.format.ContentType responseFormat, org.apache.olingo.server.api.serializer.SerializerResult serializerResult)voidretrieveData(org.apache.olingo.server.api.ODataRequest request, org.apache.olingo.server.api.ODataResponse response, org.apache.olingo.commons.api.format.ContentType responseFormat)
-
Field Details
-
em
protected final javax.persistence.EntityManager em -
sd
protected final com.sap.olingo.jpa.metadata.core.edm.mapper.api.JPAServiceDocument sd -
sessionContext
-
cb
protected final javax.persistence.criteria.CriteriaBuilder cb -
uriInfo
protected final org.apache.olingo.server.api.uri.UriInfoResource uriInfo -
serializer
-
odata
protected final org.apache.olingo.server.api.OData odata -
debugger
-
successStatusCode
protected int successStatusCode -
requestContext
-
-
Constructor Details
-
JPACountRequestProcessor
public JPACountRequestProcessor(org.apache.olingo.server.api.OData odata, JPAODataCRUDContextAccess context, JPAODataRequestContextAccess requestContext) throws org.apache.olingo.commons.api.ex.ODataException- Throws:
org.apache.olingo.commons.api.ex.ODataException
-
-
Method Details
-
retrieveData
public void retrieveData(org.apache.olingo.server.api.ODataRequest request, org.apache.olingo.server.api.ODataResponse response, org.apache.olingo.commons.api.format.ContentType responseFormat) throws org.apache.olingo.commons.api.ex.ODataException- Throws:
org.apache.olingo.commons.api.ex.ODataException
-
countEntities
protected final org.apache.olingo.commons.api.data.EntityCollection countEntities(org.apache.olingo.server.api.ODataRequest request, org.apache.olingo.server.api.uri.UriInfoResource uriInfo) throws org.apache.olingo.commons.api.ex.ODataException- Throws:
org.apache.olingo.commons.api.ex.ODataException
-
createSuccessResponce
protected final void createSuccessResponce(org.apache.olingo.server.api.ODataResponse response, org.apache.olingo.commons.api.format.ContentType responseFormat, org.apache.olingo.server.api.serializer.SerializerResult serializerResult)
-