Package com.sap.cds.services.cds
Interface AsyncCqnService
- All Superinterfaces:
Service
The interface defining the asynchronous consumption API of an outboxed
CqnService. All
methods of this interface are non-blocking and return immediately since they are submitted to the
outbox and executed asynchronously.-
Method Summary
Modifier and TypeMethodDescriptionstatic AsyncCqnServiceof(CqnService service, OutboxService outbox) Returns an outboxed instance of the givenCqnServiceas aAsyncCqnService.voidSubmits aCqnDeletestatement as batch with the given named parameter values to the outbox for asynchronous execution.voidSubmits aCqnDeletestatement with optional positional parameter values to the outbox for asynchronous execution.voidSubmits aCqnDeletestatement with named parameter values to the outbox for asynchronous execution.voidrun(com.sap.cds.ql.cqn.CqnInsert insert) Submits aCqnInsertstatement to the outbox for asynchronous execution.voidSubmits aCqnUpdatestatement as batch with the given named parameter values to the outbox for asynchronous execution.voidSubmits aCqnUpdatestatement with optional positional parameter values to the outbox for asynchronous execution.voidSubmits aCqnUpdatestatement with named parameter values to the outbox for asynchronous execution.voidrun(com.sap.cds.ql.cqn.CqnUpsert upsert) Submits aCqnUpsertstatement to the outbox for asynchronous execution.
-
Method Details
-
of
Returns an outboxed instance of the givenCqnServiceas aAsyncCqnService.- Parameters:
service- theCqnServiceto be outboxedoutbox- theOutboxServiceto be used for outboxing- Returns:
- an outboxed instance of the given
CqnServiceas aAsyncCqnService
-
run
void run(com.sap.cds.ql.cqn.CqnInsert insert) Submits aCqnInsertstatement to the outbox for asynchronous execution.- Parameters:
insert- theCqnInsertto be executed
-
run
void run(com.sap.cds.ql.cqn.CqnUpsert upsert) Submits aCqnUpsertstatement to the outbox for asynchronous execution.- Parameters:
upsert- theCqnUpsertto be executed
-
run
Submits aCqnUpdatestatement with optional positional parameter values to the outbox for asynchronous execution.- Parameters:
update- theCqnUpdateto be executedparamValues- the optional positional parameter values
-
run
Submits aCqnUpdatestatement with named parameter values to the outbox for asynchronous execution.- Parameters:
update- theCqnUpdateto be executednamedValues- the named parameter values
-
run
Submits aCqnUpdatestatement as batch with the given named parameter values to the outbox for asynchronous execution.- Parameters:
update- theCqnUpdateto be executedvalueSets- the named parameter values
-
run
Submits aCqnDeletestatement with optional positional parameter values to the outbox for asynchronous execution.- Parameters:
delete- theCqnDeleteto be executedparamValues- the optional positional parameter values
-
run
Submits aCqnDeletestatement with named parameter values to the outbox for asynchronous execution.- Parameters:
delete- theCqnDeleteto be executednamedValues- the named parameter values
-
run
Submits aCqnDeletestatement as batch with the given named parameter values to the outbox for asynchronous execution.- Parameters:
delete- theCqnDeleteto be executedvalueSets- the named parameter values
-