Interface BatchProcessor

    • Method Detail

      • executeChangeSet

        BatchResponsePart executeChangeSet​(BatchHandler handler,
                                           List<ODataRequest> requests)
                                    throws ODataException
        Executes a Change Set and provide BatchResponsePart as BatchResponsePart that contains the responses to change requests. The method has to define a rollback semantic that may be applied when a request within a Change Set fails (all-or-nothing requirement). If a request within a Change Set fails, instead of Change Set Response should be returned the error response
        Parameters:
        handler - batch handler
        requests - list of single change requests
        Returns:
        a BatchResponsePart object
        Throws:
        ODataException - Caso ocorra exceção OData