public interface CdsReadEventContext extends EventContext
EventContext
to be used for CqnService.EVENT_READ
Modifier and Type | Method and Description |
---|---|
static CdsReadEventContext |
create(String entityName)
Creates an
EventContext already overlayed with this interface. |
com.sap.cds.ql.cqn.CqnSelect |
getCqn() |
Map<String,Object> |
getCqnNamedValues()
The CQN named values, for parameterized
CqnSelect statements |
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.CqnSelect cqn)
Sets the
CqnSelect statement |
void |
setCqnNamedValues(Map<String,Object> namedValues)
Sets the CQN named values, for parameterized
CqnSelect statements |
void |
setResult(Iterable<? extends Map<String,?>> result)
Sets the result of the
CqnService.EVENT_READ event |
as, create, create, get, getCdsRuntime, getChangeSetContext, getEvent, getFeatureTogglesInfo, getMessages, getModel, getParameterInfo, getServiceCatalog, getTarget, getUserInfo, isCompleted, keySet, put, setCompleted
static CdsReadEventContext create(String entityName)
EventContext
already overlayed with this interface. The event is set to be CqnService.EVENT_READ
entityName
- the name of the entityCdsReadEventContext
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.CqnSelect getCqn()
CqnSelect
statementvoid setCqn(com.sap.cds.ql.cqn.CqnSelect cqn)
CqnSelect
statementcqn
- the CqnSelect
statementMap<String,Object> getCqnNamedValues()
CqnSelect
statementsvoid setCqnNamedValues(Map<String,Object> namedValues)
CqnSelect
statementsnamedValues
- the CQN named valuescom.sap.cds.Result getResult()
Result
of the CqnService.EVENT_READ
eventvoid setResult(Iterable<? extends Map<String,?>> result)
CqnService.EVENT_READ
eventresult
- a Result
or a list of Maps, which will be transformed into a Result
Copyright © 2021. All rights reserved.