public interface CdsUpdateEventContext extends EventContext
EventContext
to be used for CqnService.EVENT_UPDATE
Modifier and Type | Method and Description |
---|---|
static CdsUpdateEventContext |
create(String entityName)
Creates an
EventContext already overlayed with this interface. |
com.sap.cds.ql.cqn.CqnUpdate |
getCqn() |
Iterable<Map<String,Object>> |
getCqnValueSets() |
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.CqnUpdate cqn)
Sets the
CqnUpdate statement |
void |
setCqnValueSets(Iterable<Map<String,Object>> valueSets)
Sets the CQN value sets, to enable batched
CqnUpdate statements |
void |
setResult(Iterable<? extends Map<String,?>> result)
Sets the result of the
CqnService.EVENT_UPDATE event |
as, create, create, get, getCdsRuntime, getChangeSetContext, getEvent, getFeatureTogglesInfo, getMessages, getModel, getParameterInfo, getServiceCatalog, getTarget, getUserInfo, isCompleted, keySet, put, setCompleted
static CdsUpdateEventContext create(String entityName)
EventContext
already overlayed with this interface. The event is set to be CqnService.EVENT_UPDATE
entityName
- the name of the entityCdsUpdateEventContext
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.CqnUpdate getCqn()
CqnUpdate
statementvoid setCqn(com.sap.cds.ql.cqn.CqnUpdate cqn)
CqnUpdate
statementcqn
- the CqnUpdate
statementIterable<Map<String,Object>> getCqnValueSets()
CqnUpdate
statementsvoid setCqnValueSets(Iterable<Map<String,Object>> valueSets)
CqnUpdate
statementsvalueSets
- the CQN value setscom.sap.cds.Result getResult()
Result
of the CqnService.EVENT_UPDATE
eventvoid setResult(Iterable<? extends Map<String,?>> result)
CqnService.EVENT_UPDATE
eventresult
- a Result
or a list of Maps, which will be transformed into a Result
Copyright © 2021. All rights reserved.