java.lang.Object
de.hybris.platform.odata2services.odata.persistence.AbstractRequest
Direct Known Subclasses:
CrudRequest, ItemConversionRequest

public abstract class AbstractRequest extends Object
Encapsulates properties common to all OData requests.
  • Method Details

    • getEntitySet

      public org.apache.olingo.odata2.api.edm.EdmEntitySet getEntitySet()
      Retrieves entity set associated with the request.
      Returns:
      an entity set associated with the request.
    • getEntityType

      public org.apache.olingo.odata2.api.edm.EdmEntityType getEntityType()
      Retrieves entity type associated with the request entity set. This is the same as calling getEntitySet().getEntityType() but this method does not throw EdmException
      Returns:
      an entity type associated with the request entity set.
    • getAcceptLocale

      public Locale getAcceptLocale()
      Retrieves data acceptLocale associated with the request.
      Returns:
      a "Accept-Language" header locale associated with the request.
    • getEntitySetReferencedByProperty

      public org.apache.olingo.odata2.api.edm.EdmEntitySet getEntitySetReferencedByProperty(String property) throws org.apache.olingo.odata2.api.edm.EdmException
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException
    • getPropertyTypeName

      protected String getPropertyTypeName(String property) throws org.apache.olingo.odata2.api.edm.EdmException
      Throws:
      org.apache.olingo.odata2.api.edm.EdmException
    • getIntegrationObjectCode

      public String getIntegrationObjectCode()
      Retrieves data integration object code value, for which this request is issued.
      Returns:
      a value of the integration object code, which also happens to be name of the OData service.
    • setEntitySet

      protected void setEntitySet(org.apache.olingo.odata2.api.edm.EdmEntitySet set)
    • setEntityType

      protected void setEntityType(org.apache.olingo.odata2.api.edm.EdmEntityType type)
    • setAcceptLocale

      protected void setAcceptLocale(Locale loc)
    • setIntegrationObjectCode

      protected void setIntegrationObjectCode(String integrationObjectCode)