Package com.sap.cds.services.draft
Interface DraftReadEventContext
- All Superinterfaces:
EventContext
The
EventContext for the DraftService.EVENT_DRAFT_READ event-
Method Summary
Modifier and TypeMethodDescriptionstatic DraftReadEventContextCreates anEventContextalready overlaid with this interface.com.sap.cds.ql.cqn.CqnSelectgetCqn()The CQN named values, for parameterizedCqnSelectstatementscom.sap.cds.ResultReturns theService(Consumption API) of the service, targeted by theEventContext.voidsetCqn(com.sap.cds.ql.cqn.CqnSelect cqn) Sets theCqnSelectstatementvoidsetCqnNamedValues(Map<String, Object> namedValues) Sets the CQN named values, for parameterizedCqnSelectstatementsvoidSets the result of theDraftService.EVENT_DRAFT_READeventMethods 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 beDraftService.EVENT_DRAFT_READ- Parameters:
entityName- the name of the entity- Returns:
- the
DraftReadEventContext
-
getService
DraftService 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.CqnSelect getCqn()- Returns:
- the
CqnSelectstatement
-
setCqn
void setCqn(com.sap.cds.ql.cqn.CqnSelect cqn) Sets theCqnSelectstatement- Parameters:
cqn- theCqnSelectstatement
-
getCqnNamedValues
The CQN named values, for parameterizedCqnSelectstatements- Returns:
- the CQN named values
-
setCqnNamedValues
Sets the CQN named values, for parameterizedCqnSelectstatements- Parameters:
namedValues- the CQN named values
-
getResult
com.sap.cds.Result getResult()- Returns:
- the
Resultof theDraftService.EVENT_DRAFT_READevent
-
setResult
Sets the result of theDraftService.EVENT_DRAFT_READevent- Parameters:
result- aResultor a list of Maps, which will be transformed into aResult
-