public interface CdsUpsertEventContext extends EventContext
EventContext
to be used for CqnService.EVENT_UPSERT
Modifier and Type | Method and Description |
---|---|
static CdsUpsertEventContext |
create(String entityName)
Creates an
EventContext already overlayed with this interface. |
com.sap.cds.ql.cqn.CqnUpsert |
getCqn() |
com.sap.cds.Result |
getResult() |
CqnService |
getService()
Returns the
Service (Consumption API) of the service, targeted by the EventContext . |
void |
setCqn(com.sap.cds.ql.cqn.CqnUpsert cqn)
Sets the
CqnUpsert statement |
void |
setResult(Iterable<? extends Map<String,?>> result)
Sets the result of the
CqnService.EVENT_UPSERT event |
as, create, create, get, getAuthenticationInfo, getCdsRuntime, getChangeSetContext, getEvent, getFeatureTogglesInfo, getMessages, getModel, getParameterInfo, getServiceCatalog, getTarget, getUserInfo, isCompleted, keySet, put, setCompleted
static CdsUpsertEventContext create(String entityName)
EventContext
already overlayed with this interface. The event is set to be CqnService.EVENT_UPSERT
entityName
- the name of the entityCdsUpsertEventContext
CqnService getService()
EventContext
Service
(Consumption API) of the service, targeted by the EventContext
.
This is the service, on which the Service.emit(EventContext)
method (or specialized Consumption API) was called.getService
in interface EventContext
Service
(Consumption API) of the service, targeted by the EventContext
.com.sap.cds.ql.cqn.CqnUpsert getCqn()
CqnUpsert
statementvoid setCqn(com.sap.cds.ql.cqn.CqnUpsert cqn)
CqnUpsert
statementcqn
- the CqnUpsert
statementcom.sap.cds.Result getResult()
Result
of the CqnService.EVENT_UPSERT
eventvoid setResult(Iterable<? extends Map<String,?>> result)
CqnService.EVENT_UPSERT
eventresult
- a Result
or a list of Maps, which will be transformed into a Result
Copyright © 2022. All rights reserved.