Interface CdsReadEventContext

All Superinterfaces:
EventContext

public interface CdsReadEventContext extends EventContext
The specialized EventContext to be used for CqnService.EVENT_READ
  • Method Details

    • create

      static CdsReadEventContext create(String entityName)
      Creates an EventContext already overlayed with this interface. The event is set to be CqnService.EVENT_READ
      Parameters:
      entityName - the name of the entity
      Returns:
      the CdsReadEventContext
    • getService

      CqnService getService()
      Description copied from interface: EventContext
      Returns the 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.
      Specified by:
      getService in interface EventContext
      Returns:
      the Service (Consumption API) of the service, targeted by the EventContext.
    • getCqn

      com.sap.cds.ql.cqn.CqnSelect getCqn()
      Returns:
      the CqnSelect statement
    • setCqn

      void setCqn(com.sap.cds.ql.cqn.CqnSelect cqn)
      Sets the CqnSelect statement
      Parameters:
      cqn - the CqnSelect statement
    • getCqnNamedValues

      Map<String,Object> getCqnNamedValues()
      The CQN named values, for parameterized CqnSelect statements
      Returns:
      the CQN named values
    • setCqnNamedValues

      void setCqnNamedValues(Map<String,Object> namedValues)
      Sets the CQN named values, for parameterized CqnSelect statements
      Parameters:
      namedValues - the CQN named values
    • getResult

      com.sap.cds.Result getResult()
      Returns:
      the Result of the CqnService.EVENT_READ event
    • setResult

      void setResult(Iterable<? extends Map<String,?>> result)
      Sets the result of the CqnService.EVENT_READ event
      Parameters:
      result - a Result or a list of Maps, which will be transformed into a Result