Class DefaultODataProcessor

  • All Implemented Interfaces:
    org.apache.olingo.odata2.api.processor.feature.CustomContentType, org.apache.olingo.odata2.api.processor.feature.ODataProcessorFeature, org.apache.olingo.odata2.api.processor.ODataProcessor, org.apache.olingo.odata2.api.processor.part.BatchProcessor, org.apache.olingo.odata2.api.processor.part.EntityComplexPropertyProcessor, org.apache.olingo.odata2.api.processor.part.EntityLinkProcessor, org.apache.olingo.odata2.api.processor.part.EntityLinksProcessor, org.apache.olingo.odata2.api.processor.part.EntityMediaProcessor, org.apache.olingo.odata2.api.processor.part.EntityProcessor, org.apache.olingo.odata2.api.processor.part.EntitySetProcessor, org.apache.olingo.odata2.api.processor.part.EntitySimplePropertyProcessor, org.apache.olingo.odata2.api.processor.part.EntitySimplePropertyValueProcessor, org.apache.olingo.odata2.api.processor.part.FunctionImportProcessor, org.apache.olingo.odata2.api.processor.part.FunctionImportValueProcessor, org.apache.olingo.odata2.api.processor.part.MetadataProcessor, org.apache.olingo.odata2.api.processor.part.ServiceDocumentProcessor

    @Deprecated(since="1905.08-CEP",
                forRemoval=true)
    public class DefaultODataProcessor
    extends org.apache.olingo.odata2.api.processor.ODataSingleProcessor
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use OData2Processor instead
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultODataProcessor()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected void beginTransaction()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected void commitTransaction()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.apache.olingo.odata2.api.processor.ODataResponse countEntitySet​(org.apache.olingo.odata2.api.uri.info.GetEntitySetCountUriInfo uriInfo, java.lang.String contentType)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.apache.olingo.odata2.api.processor.ODataResponse createEntity​(org.apache.olingo.odata2.api.uri.info.PostUriInfo uriInfo, java.io.InputStream content, java.lang.String requestContentType, java.lang.String responseContentType)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected java.lang.String createLogStatements​(org.apache.olingo.odata2.api.edm.EdmEntityType entityType, org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry, int level)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.apache.olingo.odata2.api.processor.ODataResponse deleteEntity​(org.apache.olingo.odata2.api.uri.info.DeleteUriInfo uriInfo, java.lang.String contentType)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.apache.olingo.odata2.api.processor.ODataResponse executeBatch​(org.apache.olingo.odata2.api.batch.BatchHandler handler, java.lang.String contentType, java.io.InputStream content)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.apache.olingo.odata2.api.batch.BatchResponsePart executeChangeSet​(org.apache.olingo.odata2.api.batch.BatchHandler handler, java.util.List<org.apache.olingo.odata2.api.processor.ODataRequest> requests)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected java.util.List<org.apache.olingo.odata2.api.processor.ODataResponse> executeChangeSetInTransaction​(org.apache.olingo.odata2.api.batch.BatchHandler handler, java.util.List<org.apache.olingo.odata2.api.processor.ODataRequest> requests)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected java.lang.Object executeInTransaction​(org.apache.olingo.odata2.api.batch.BatchHandler handler, java.util.List<org.apache.olingo.odata2.api.processor.ODataRequest> requests)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected EntityReaderRegistry getEntityReaderRegistry()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected ItemLookupRequestFactory getItemLookupRequestFactory()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected ModelService getModelService()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected org.apache.olingo.odata2.api.processor.ODataResponse.ODataResponseBuilder getoDataResponseBuilder​(org.apache.olingo.odata2.api.processor.ODataResponse readerResponse)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected ODataServicesConfiguration getoDataServicesConfiguration()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected PersistenceService getPersistenceService()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      StorageRequestFactory getStorageRequestFactory()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected void logRequestEntity​(org.apache.olingo.odata2.api.edm.EdmEntityType entityType, org.apache.olingo.odata2.api.ep.entry.ODataEntry entry)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected java.util.List<org.apache.olingo.odata2.api.batch.BatchRequestPart> parseBatchRequest​(java.lang.String contentType, java.io.InputStream content, org.apache.olingo.odata2.api.ep.EntityProviderBatchProperties batchProperties)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected org.apache.olingo.odata2.api.batch.BatchResponsePart partFromResponses​(java.util.List<org.apache.olingo.odata2.api.processor.ODataResponse> responses)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.apache.olingo.odata2.api.processor.ODataResponse readEntity​(org.apache.olingo.odata2.api.uri.info.GetEntityUriInfo uriInfo, java.lang.String contentType)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.apache.olingo.odata2.api.processor.ODataResponse readEntitySet​(org.apache.olingo.odata2.api.uri.info.GetEntitySetUriInfo uriInfo, java.lang.String contentType)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected org.apache.olingo.odata2.api.ep.entry.ODataEntry readEntry​(java.io.InputStream content, java.lang.String requestContentType, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected void rollbackTransaction()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setEntityReaderRegistry​(EntityReaderRegistry entityReaderRegistry)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setItemLookupRequestFactory​(ItemLookupRequestFactory itemLookupRequestFactory)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setModelService​(ModelService modelService)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setODataServicesConfiguration​(ODataServicesConfiguration oDataServicesConfiguration)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setPersistenceService​(PersistenceService persistenceService)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setStorageRequestFactory​(StorageRequestFactory storageRequestFactory)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected org.apache.olingo.odata2.api.processor.ODataResponse writeBatchResponse​(java.util.List<org.apache.olingo.odata2.api.batch.BatchResponsePart> responseParts)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected org.apache.olingo.odata2.api.processor.ODataResponse writeEntry​(java.lang.String responseContentType, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, org.apache.olingo.odata2.api.ep.entry.ODataEntry persistedEntry, org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties writeProperties)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties writeProperties()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      • Methods inherited from class org.apache.olingo.odata2.api.processor.ODataSingleProcessor

        countEntityLinks, createEntityLink, deleteEntityLink, deleteEntityMedia, deleteEntitySimplePropertyValue, executeFunctionImport, executeFunctionImportValue, existsEntity, existsEntityLink, getContext, getCustomContentTypes, readEntityComplexProperty, readEntityLink, readEntityLinks, readEntityMedia, readEntitySimpleProperty, readEntitySimplePropertyValue, readMetadata, readServiceDocument, setContext, updateEntity, updateEntityComplexProperty, updateEntityLink, updateEntityMedia, updateEntitySimpleProperty, updateEntitySimplePropertyValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultODataProcessor

        public DefaultODataProcessor()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • createLogStatements

        protected java.lang.String createLogStatements​(org.apache.olingo.odata2.api.edm.EdmEntityType entityType,
                                                       org.apache.olingo.odata2.api.ep.entry.ODataEntry oDataEntry,
                                                       int level)
                                                throws org.apache.olingo.odata2.api.edm.EdmException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • logRequestEntity

        protected void logRequestEntity​(org.apache.olingo.odata2.api.edm.EdmEntityType entityType,
                                        org.apache.olingo.odata2.api.ep.entry.ODataEntry entry)
                                 throws org.apache.olingo.odata2.api.edm.EdmException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Throws:
        org.apache.olingo.odata2.api.edm.EdmException
      • createEntity

        public org.apache.olingo.odata2.api.processor.ODataResponse createEntity​(org.apache.olingo.odata2.api.uri.info.PostUriInfo uriInfo,
                                                                                 java.io.InputStream content,
                                                                                 java.lang.String requestContentType,
                                                                                 java.lang.String responseContentType)
                                                                          throws org.apache.olingo.odata2.api.exception.ODataException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        createEntity in interface org.apache.olingo.odata2.api.processor.part.EntitySetProcessor
        Overrides:
        createEntity in class org.apache.olingo.odata2.api.processor.ODataSingleProcessor
        Throws:
        org.apache.olingo.odata2.api.exception.ODataException
      • executeBatch

        public org.apache.olingo.odata2.api.processor.ODataResponse executeBatch​(org.apache.olingo.odata2.api.batch.BatchHandler handler,
                                                                                 java.lang.String contentType,
                                                                                 java.io.InputStream content)
                                                                          throws org.apache.olingo.odata2.api.exception.ODataException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        executeBatch in interface org.apache.olingo.odata2.api.processor.part.BatchProcessor
        Overrides:
        executeBatch in class org.apache.olingo.odata2.api.processor.ODataSingleProcessor
        Throws:
        org.apache.olingo.odata2.api.exception.ODataException
      • writeBatchResponse

        protected org.apache.olingo.odata2.api.processor.ODataResponse writeBatchResponse​(java.util.List<org.apache.olingo.odata2.api.batch.BatchResponsePart> responseParts)
                                                                                   throws org.apache.olingo.odata2.api.batch.BatchException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Throws:
        org.apache.olingo.odata2.api.batch.BatchException
      • parseBatchRequest

        protected java.util.List<org.apache.olingo.odata2.api.batch.BatchRequestPart> parseBatchRequest​(java.lang.String contentType,
                                                                                                        java.io.InputStream content,
                                                                                                        org.apache.olingo.odata2.api.ep.EntityProviderBatchProperties batchProperties)
                                                                                                 throws org.apache.olingo.odata2.api.batch.BatchException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Throws:
        org.apache.olingo.odata2.api.batch.BatchException
      • executeChangeSet

        public org.apache.olingo.odata2.api.batch.BatchResponsePart executeChangeSet​(org.apache.olingo.odata2.api.batch.BatchHandler handler,
                                                                                     java.util.List<org.apache.olingo.odata2.api.processor.ODataRequest> requests)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        executeChangeSet in interface org.apache.olingo.odata2.api.processor.part.BatchProcessor
        Overrides:
        executeChangeSet in class org.apache.olingo.odata2.api.processor.ODataSingleProcessor
      • deleteEntity

        public org.apache.olingo.odata2.api.processor.ODataResponse deleteEntity​(org.apache.olingo.odata2.api.uri.info.DeleteUriInfo uriInfo,
                                                                                 java.lang.String contentType)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        deleteEntity in interface org.apache.olingo.odata2.api.processor.part.EntityProcessor
        Overrides:
        deleteEntity in class org.apache.olingo.odata2.api.processor.ODataSingleProcessor
      • executeInTransaction

        protected java.lang.Object executeInTransaction​(org.apache.olingo.odata2.api.batch.BatchHandler handler,
                                                        java.util.List<org.apache.olingo.odata2.api.processor.ODataRequest> requests)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • commitTransaction

        protected void commitTransaction()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • rollbackTransaction

        protected void rollbackTransaction()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • beginTransaction

        protected void beginTransaction()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • partFromResponses

        protected org.apache.olingo.odata2.api.batch.BatchResponsePart partFromResponses​(java.util.List<org.apache.olingo.odata2.api.processor.ODataResponse> responses)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • countEntitySet

        public org.apache.olingo.odata2.api.processor.ODataResponse countEntitySet​(org.apache.olingo.odata2.api.uri.info.GetEntitySetCountUriInfo uriInfo,
                                                                                   java.lang.String contentType)
                                                                            throws org.apache.olingo.odata2.api.exception.ODataException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        countEntitySet in interface org.apache.olingo.odata2.api.processor.part.EntitySetProcessor
        Overrides:
        countEntitySet in class org.apache.olingo.odata2.api.processor.ODataSingleProcessor
        Throws:
        org.apache.olingo.odata2.api.exception.ODataException
      • readEntity

        public org.apache.olingo.odata2.api.processor.ODataResponse readEntity​(org.apache.olingo.odata2.api.uri.info.GetEntityUriInfo uriInfo,
                                                                               java.lang.String contentType)
                                                                        throws org.apache.olingo.odata2.api.exception.ODataException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        readEntity in interface org.apache.olingo.odata2.api.processor.part.EntityProcessor
        Overrides:
        readEntity in class org.apache.olingo.odata2.api.processor.ODataSingleProcessor
        Throws:
        org.apache.olingo.odata2.api.exception.ODataException
      • readEntitySet

        public org.apache.olingo.odata2.api.processor.ODataResponse readEntitySet​(org.apache.olingo.odata2.api.uri.info.GetEntitySetUriInfo uriInfo,
                                                                                  java.lang.String contentType)
                                                                           throws org.apache.olingo.odata2.api.exception.ODataException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        readEntitySet in interface org.apache.olingo.odata2.api.processor.part.EntitySetProcessor
        Overrides:
        readEntitySet in class org.apache.olingo.odata2.api.processor.ODataSingleProcessor
        Throws:
        org.apache.olingo.odata2.api.exception.ODataException
      • readEntry

        protected org.apache.olingo.odata2.api.ep.entry.ODataEntry readEntry​(java.io.InputStream content,
                                                                             java.lang.String requestContentType,
                                                                             org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet)
                                                                      throws org.apache.olingo.odata2.api.ep.EntityProviderException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Throws:
        org.apache.olingo.odata2.api.ep.EntityProviderException
      • writeEntry

        protected org.apache.olingo.odata2.api.processor.ODataResponse writeEntry​(java.lang.String responseContentType,
                                                                                  org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet,
                                                                                  org.apache.olingo.odata2.api.ep.entry.ODataEntry persistedEntry,
                                                                                  org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties writeProperties)
                                                                           throws org.apache.olingo.odata2.api.ep.EntityProviderException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Throws:
        org.apache.olingo.odata2.api.ep.EntityProviderException
      • writeProperties

        protected org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties writeProperties()
                                                                                         throws org.apache.olingo.odata2.api.exception.ODataException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Throws:
        org.apache.olingo.odata2.api.exception.ODataException
      • getoDataResponseBuilder

        protected org.apache.olingo.odata2.api.processor.ODataResponse.ODataResponseBuilder getoDataResponseBuilder​(org.apache.olingo.odata2.api.processor.ODataResponse readerResponse)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • executeChangeSetInTransaction

        protected java.util.List<org.apache.olingo.odata2.api.processor.ODataResponse> executeChangeSetInTransaction​(org.apache.olingo.odata2.api.batch.BatchHandler handler,
                                                                                                                     java.util.List<org.apache.olingo.odata2.api.processor.ODataRequest> requests)
                                                                                                              throws org.apache.olingo.odata2.api.exception.ODataException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Throws:
        org.apache.olingo.odata2.api.exception.ODataException
      • getPersistenceService

        protected PersistenceService getPersistenceService()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setPersistenceService

        public void setPersistenceService​(PersistenceService persistenceService)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getoDataServicesConfiguration

        protected ODataServicesConfiguration getoDataServicesConfiguration()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setODataServicesConfiguration

        public void setODataServicesConfiguration​(ODataServicesConfiguration oDataServicesConfiguration)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getModelService

        protected ModelService getModelService()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setModelService

        public void setModelService​(ModelService modelService)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getEntityReaderRegistry

        protected EntityReaderRegistry getEntityReaderRegistry()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setEntityReaderRegistry

        public void setEntityReaderRegistry​(EntityReaderRegistry entityReaderRegistry)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getItemLookupRequestFactory

        protected ItemLookupRequestFactory getItemLookupRequestFactory()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setItemLookupRequestFactory

        public void setItemLookupRequestFactory​(ItemLookupRequestFactory itemLookupRequestFactory)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getStorageRequestFactory

        public StorageRequestFactory getStorageRequestFactory()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setStorageRequestFactory

        public void setStorageRequestFactory​(StorageRequestFactory storageRequestFactory)
        Deprecated, for removal: This API element is subject to removal in a future version.