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 AsyncCqnService
of
(CqnService service, OutboxService outbox) Returns an outboxed instance of the givenCqnService
as aAsyncCqnService
.void
Executes aCqnDelete
statement as batch with the given named parameter values against theAsyncCqnService
.void
Executes aCqnDelete
statement with optional positional parameter values against theAsyncCqnService
.void
Executes aCqnDelete
statement with named parameter values against theAsyncCqnService
.void
run
(com.sap.cds.ql.cqn.CqnInsert insert) Executes aCqnInsert
statement against theAsyncCqnService
.void
Executes aCqnUpdate
statement as batch with the given named parameter values against theAsyncCqnService
.void
Executes aCqnUpdate
statement with optional positional parameter values against theAsyncCqnService
.void
Executes aCqnUpdate
statement with named parameter values against theAsyncCqnService
.void
run
(com.sap.cds.ql.cqn.CqnUpsert upsert) Executes aCqnUpsert
statement against theAsyncCqnService
.
-
Method Details
-
of
Returns an outboxed instance of the givenCqnService
as aAsyncCqnService
.- Parameters:
service
- theCqnService
to be outboxedoutbox
- theOutboxService
to be used for outboxing- Returns:
- an outboxed instance of the given
CqnService
as aAsyncCqnService
-
run
void run(com.sap.cds.ql.cqn.CqnInsert insert) Executes aCqnInsert
statement against theAsyncCqnService
.- Parameters:
insert
- theCqnInsert
to be executed
-
run
void run(com.sap.cds.ql.cqn.CqnUpsert upsert) Executes aCqnUpsert
statement against theAsyncCqnService
.- Parameters:
upsert
- theCqnUpsert
to be executed
-
run
Executes aCqnUpdate
statement with optional positional parameter values against theAsyncCqnService
.- Parameters:
update
- theCqnUpdate
to be executedparamValues
- the optional positional parameter values
-
run
Executes aCqnUpdate
statement with named parameter values against theAsyncCqnService
.- Parameters:
update
- theCqnUpdate
to be executednamedValues
- the named parameter values
-
run
Executes aCqnUpdate
statement as batch with the given named parameter values against theAsyncCqnService
.- Parameters:
update
- theCqnUpdate
to be executedvalueSets
- the named parameter values
-
run
Executes aCqnDelete
statement with optional positional parameter values against theAsyncCqnService
.- Parameters:
delete
- theCqnDelete
to be executedparamValues
- the optional positional parameter values
-
run
Executes aCqnDelete
statement with named parameter values against theAsyncCqnService
.- Parameters:
delete
- theCqnDelete
to be executednamedValues
- the named parameter values
-
run
Executes aCqnDelete
statement as batch with the given named parameter values against theAsyncCqnService
.- Parameters:
delete
- theCqnDelete
to be executedvalueSets
- the named parameter values
-