Package com.sap.cds.services.cds
Interface CdsDeleteEventContext
- All Superinterfaces:
EventContext
The specialized
EventContext
to be used for CqnService.EVENT_DELETE
-
Method Summary
Modifier and TypeMethodDescriptionstatic CdsDeleteEventContext
Creates anEventContext
already overlayed with this interface.com.sap.cds.ql.cqn.CqnDelete
getCqn()
com.sap.cds.Result
Returns theService
(Consumption API) of the service, targeted by theEventContext
.void
setCqn
(com.sap.cds.ql.cqn.CqnDelete cqn) Sets theCqnDelete
statementvoid
setCqnValueSets
(Iterable<Map<String, Object>> valueSets) Sets the CQN value sets, to enable batchedCqnDelete
statementsvoid
Sets the result of theCqnService.EVENT_DELETE
eventMethods inherited from interface com.sap.cds.services.EventContext
as, get, getAuthenticationInfo, getCdsRuntime, getChangeSetContext, getEvent, getFeatureTogglesInfo, getMessages, getModel, getParameterInfo, getServiceCatalog, getTarget, getUserInfo, isCompleted, keySet, put, setCompleted
-
Method Details
-
create
Creates anEventContext
already overlayed with this interface. The event is set to beCqnService.EVENT_DELETE
- Parameters:
entityName
- the name of the entity- Returns:
- the
CdsDeleteEventContext
-
getService
CqnService getService()Description copied from interface:EventContext
Returns theService
(Consumption API) of the service, targeted by theEventContext
. This is the service, on which theService.emit(EventContext)
method (or specialized Consumption API) was called.- Specified by:
getService
in interfaceEventContext
- Returns:
- the
Service
(Consumption API) of the service, targeted by theEventContext
.
-
getCqn
com.sap.cds.ql.cqn.CqnDelete getCqn()- Returns:
- the
CqnDelete
statement
-
setCqn
void setCqn(com.sap.cds.ql.cqn.CqnDelete cqn) Sets theCqnDelete
statement- Parameters:
cqn
- theCqnDelete
statement
-
getCqnValueSets
- Returns:
- the CQN value sets, to enable batched
CqnDelete
statements
-
setCqnValueSets
Sets the CQN value sets, to enable batchedCqnDelete
statements- Parameters:
valueSets
- the CQN value sets
-
getResult
com.sap.cds.Result getResult()- Returns:
- the
Result
of theCqnService.EVENT_DELETE
event
-
setResult
Sets the result of theCqnService.EVENT_DELETE
event- Parameters:
result
- aResult
or a list of Maps, which will be transformed into aResult
-