Class AbstractRequest
java.lang.Object
de.hybris.platform.odata2services.odata.persistence.AbstractRequest
- Direct Known Subclasses:
CrudRequest,ItemConversionRequest
Encapsulates properties common to all OData requests.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classAbstractRequest.AbstractRequestBuilder<T extends AbstractRequest.AbstractRequestBuilder,R extends AbstractRequest> -
Method Summary
Modifier and TypeMethodDescriptionRetrieves data acceptLocale associated with the request.org.apache.olingo.odata2.api.edm.EdmEntitySetRetrieves entity set associated with the request.org.apache.olingo.odata2.api.edm.EdmEntitySetgetEntitySetReferencedByProperty(String property) org.apache.olingo.odata2.api.edm.EdmEntityTypeRetrieves entity type associated with the request entity set.Retrieves data integration object code value, for which this request is issued.protected StringgetPropertyTypeName(String property) protected voidsetAcceptLocale(Locale loc) protected voidsetEntitySet(org.apache.olingo.odata2.api.edm.EdmEntitySet set) protected voidsetEntityType(org.apache.olingo.odata2.api.edm.EdmEntityType type) protected voidsetIntegrationObjectCode(String integrationObjectCode)
-
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 callinggetEntitySet().getEntityType()but this method does not throwEdmException- Returns:
- an entity type associated with the request entity set.
-
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
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
-
setIntegrationObjectCode
-