Class SingleEntityReader

  • All Implemented Interfaces:
    EntityReader

    public class SingleEntityReader
    extends AbstractEntityReader
    The SingleEntityReader reads from the commerce suite a single entity. The entity is selected by the provided key. The entity can also be a navigation property which has a single multiplicity.
    • Constructor Detail

      • SingleEntityReader

        public SingleEntityReader()
    • Method Detail

      • isApplicable

        public boolean isApplicable​(org.apache.olingo.odata2.api.uri.UriInfo uriInfo)
        Description copied from interface: EntityReader
        Indicates whether this EntityReader can read the requested information
        Parameters:
        uriInfo - Used to determine whether this EntityReader is applicable
        Returns:
        true if this EntityReader can do the read, otherwise false
      • read

        public org.apache.olingo.odata2.api.processor.ODataResponse read​(ItemLookupRequest itemLookupRequest)
                                                                  throws org.apache.olingo.odata2.api.exception.ODataException
        Description copied from interface: EntityReader
        Reads from the commerce suite the requested information
        Parameters:
        itemLookupRequest - Parameter object that contains the request
        Returns:
        The result provided as an ODataResponse
        Throws:
        org.apache.olingo.odata2.api.exception.ODataException - When an error occurs retrieving the entity
      • setNavigationSegmentExplorer

        public void setNavigationSegmentExplorer​(NavigationSegmentExplorer navigationSegmentExplorer)