Interface ODataEntryToIntegrationItemConverter
- All Known Implementing Classes:
DefaultODataEntryToIntegrationItemConverter
public interface ODataEntryToIntegrationItemConverter
Converts an
ODataEntry to an instance of
IntegrationItem-
Method Summary
Modifier and TypeMethodDescriptionconvert(org.apache.olingo.odata2.api.processor.ODataContext context, TypeDescriptor typeDesc, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry) Performs the conversion whenTypeDescriptorfor the integration item to create is available.convert(org.apache.olingo.odata2.api.processor.ODataContext context, TypeDescriptor typeDesc, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry, IntegrationItem parentItem) Performs conversion of an OData entry nested in the payload of an outer entry.convert(org.apache.olingo.odata2.api.processor.ODataContext context, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry) Performs the conversion when there is noTypeDescriptoravailable.
-
Method Details
-
convert
IntegrationItem convert(org.apache.olingo.odata2.api.processor.ODataContext context, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry) throws org.apache.olingo.odata2.api.edm.EdmException Performs the conversion when there is noTypeDescriptoravailable. In this case the type descriptor will be derived from the other parameters.- Parameters:
context- context of the request containing the entryentitySet- metadata about the entry receivedentry- the entry received to be converted to theIntegrationItem- Returns:
- an integration item converted from the entry
- Throws:
org.apache.olingo.odata2.api.edm.EdmException- if there is a problem with the metadata provided by theentitySet
-
convert
IntegrationItem convert(org.apache.olingo.odata2.api.processor.ODataContext context, TypeDescriptor typeDesc, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry) Performs the conversion whenTypeDescriptorfor the integration item to create is available.- Parameters:
context- context of the request containing the entrytypeDesc- type descriptor for the integration item to createentry- the entry received to be converted to theIntegrationItem- Returns:
- an integration item converted from the entry
-
convert
IntegrationItem convert(org.apache.olingo.odata2.api.processor.ODataContext context, TypeDescriptor typeDesc, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry, IntegrationItem parentItem) Performs conversion of an OData entry nested in the payload of an outer entry.- Parameters:
context- context of the request containing the entrytypeDesc- type descriptor for the integration item to create, that matches the entry being convertedentry- the entry received to be converted to theIntegrationItemparentItem- integration item that corresponds to the OData entry containing the entry being converted.- Returns:
- an integration item converted from the entry
-