Package com.sap.cds.services.cds
Interface CdsUpsertEventContext
- All Superinterfaces:
EventContext
The specialized
EventContext to be used for CqnService.EVENT_UPSERT-
Method Summary
Modifier and TypeMethodDescriptionstatic CdsUpsertEventContextCreates anEventContextalready overlaid with this interface.com.sap.cds.ql.cqn.CqnUpsertgetCqn()com.sap.cds.ResultReturns theService(Consumption API) of the service, targeted by theEventContext.voidsetCqn(com.sap.cds.ql.cqn.CqnUpsert cqn) Sets theCqnUpsertstatementvoidSets the result of theCqnService.EVENT_UPSERTeventMethods inherited from interface com.sap.cds.services.EventContext
as, get, getAuthenticationInfo, getCdsRuntime, getChangeSetContext, getEvent, getFeatureTogglesInfo, getMessages, getModel, getParameterInfo, getServiceCatalog, getTarget, getUserInfo, isCompleted, keySet, proceed, put, setCompleted
-
Method Details
-
create
Creates anEventContextalready overlaid with this interface. The event is set to beCqnService.EVENT_UPSERT- Parameters:
entityName- the name of the entity- Returns:
- the
CdsUpsertEventContext
-
getService
CqnService getService()Description copied from interface:EventContextReturns 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:
getServicein interfaceEventContext- Returns:
- the
Service(Consumption API) of the service, targeted by theEventContext.
-
getCqn
com.sap.cds.ql.cqn.CqnUpsert getCqn()- Returns:
- the
CqnUpsertstatement
-
setCqn
void setCqn(com.sap.cds.ql.cqn.CqnUpsert cqn) Sets theCqnUpsertstatement- Parameters:
cqn- theCqnUpsertstatement
-
getResult
com.sap.cds.Result getResult()- Returns:
- the
Resultof theCqnService.EVENT_UPSERTevent
-
setResult
Sets the result of theCqnService.EVENT_UPSERTevent- Parameters:
result- aResultor a list of Maps, which will be transformed into aResult
-