Package com.sap.cds.services.runtime
Interface ChangeSetContextRunner
public interface ChangeSetContextRunner
-
Method Summary
Modifier and TypeMethodDescriptionvoidrun(Consumer<ChangeSetContext> changeSetHandler) Opens aChangeSetContextand runs the given handler within its scope.<T> Trun(Function<ChangeSetContext, T> changeSetHandler) Opens aChangeSetContextand runs the given handler within its scope.
-
Method Details
-
run
Opens aChangeSetContextand runs the given handler within its scope. TheChangeSetContextmarks a scope in which all opened transactions etc. are committed cancelled together. Note that single transactions may fail during commit but others might be successful.The
ChangeSetContextwill be propagated to allEventContextinstances in the service call hierarchy.- Type Parameters:
T- The type of the response- Parameters:
changeSetHandler- The handler for processing the request within the context- Returns:
- A generic response object of the handler
-
run
Opens aChangeSetContextand runs the given handler within its scope. TheChangeSetContextmarks a scope in which all opened transactions etc. are committed cancelled together. Note that single transactions may fail during commit but others might be successful.The
ChangeSetContextwill be propagated to allEventContextinstances in the service call hierarchy.- Parameters:
changeSetHandler- The handler for processing the request within the context
-