Package com.sap.cds.services.draft
Interface DraftPatchEventContext
- All Superinterfaces:
EventContext
The
EventContext
for the DraftService.EVENT_DRAFT_PATCH
event.-
Method Summary
Modifier and TypeMethodDescriptionstatic DraftPatchEventContext
Creates anEventContext
already overlayed with this interface.com.sap.cds.ql.cqn.CqnUpdate
getCqn()
com.sap.cds.Result
Returns theService
(Consumption API) of the service, targeted by theEventContext
.void
setCqn
(com.sap.cds.ql.cqn.CqnUpdate cqn) Sets theCqnUpdate
statementvoid
setCqnValueSets
(Iterable<Map<String, Object>> valueSets) Sets the CQN value sets, to enable batchedCqnUpdate
statementsvoid
Sets the result of theDraftService.EVENT_DRAFT_PATCH
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 beDraftService.EVENT_DRAFT_PATCH
- Parameters:
entityName
- the name of the entity- Returns:
- the
DraftPatchEventContext
-
getService
DraftService 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.CqnUpdate getCqn()- Returns:
- the
CqnUpdate
statement
-
setCqn
void setCqn(com.sap.cds.ql.cqn.CqnUpdate cqn) Sets theCqnUpdate
statement- Parameters:
cqn
- theCqnUpdate
statement
-
getCqnValueSets
- Returns:
- the CQN value sets, to enable batched
CqnUpdate
statements
-
setCqnValueSets
Sets the CQN value sets, to enable batchedCqnUpdate
statements- Parameters:
valueSets
- the CQN value sets
-
getResult
com.sap.cds.Result getResult()- Returns:
- the
Result
of theDraftService.EVENT_DRAFT_PATCH
event
-
setResult
Sets the result of theDraftService.EVENT_DRAFT_PATCH
event- Parameters:
result
- aResult
or a list of Maps, which will be transformed into aResult
-