Class DefaultODataEntryToIntegrationItemConverter

    • Constructor Detail

      • DefaultODataEntryToIntegrationItemConverter

        public DefaultODataEntryToIntegrationItemConverter()
    • Method Detail

      • convert

        public IntegrationItem convert​(org.apache.olingo.odata2.api.processor.ODataContext context,
                                       @NotNull
                                       @NotNull org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet,
                                       @NotNull
                                       @NotNull org.apache.olingo.odata2.api.ep.entry.ODataEntry entry)
                                throws org.apache.olingo.odata2.api.edm.EdmException
        Description copied from interface: ODataEntryToIntegrationItemConverter
        Performs the conversion.
        Specified by:
        convert in interface ODataEntryToIntegrationItemConverter
        Parameters:
        context - context of the request containing the entry
        entitySet - metadata about the entry received
        entry - the entry received to be converted to the IntegrationItem
        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 the entitySet
      • createIntegrationItem

        protected DefaultIntegrationItem createIntegrationItem​(TypeDescriptor typeDesc,
                                                               org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet,
                                                               org.apache.olingo.odata2.api.ep.entry.ODataEntry entry)
        Instantiates an integration item.
        Parameters:
        typeDesc - type descriptor to specify what type the item should have
        entitySet - an ODataSet to which the OData entry is being posted
        entry - payload of the request
        Returns:
        an integration item instance corresponding to the parameters specified
      • setModelEntityService

        public void setModelEntityService​(ModelEntityService service)