public class CountReader extends AbstractEntityReader
CountReader reads number of items in the platform matching the request conditions.| Constructor and Description |
|---|
CountReader() |
| Modifier and Type | Method and Description |
|---|---|
protected ModelEntityService |
getEntityService() |
boolean |
isApplicable(UriInfo uriInfo)
Indicates whether this EntityReader can read the requested information
|
ODataResponse |
read(ItemLookupRequest request)
Reads from the commerce suite the requested information
|
void |
setEntityService(ModelEntityService service) |
getPersistenceService, getResponseWriter, handleAssociationMultiplicityRetrievalError, setPersistenceService, setResponseWriterpublic boolean isApplicable(UriInfo uriInfo)
EntityReaderuriInfo - Used to determine whether this EntityReader is applicabletrue if this EntityReader can do the read, otherwise falsepublic ODataResponse read(ItemLookupRequest request) throws ODataException
This method reads only number of items matching the conditions specified in the request.
request - parameter object that contains the request with the conditions for the items to be counted.plain/text for
that reasonODataException - when the request violates the OData protocolprotected ModelEntityService getEntityService()
public void setEntityService(ModelEntityService service)
Copyright © 2018 SAP SE. All Rights Reserved.