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