Interface CdsDeleteEventContext

All Superinterfaces:
EventContext

public interface CdsDeleteEventContext extends EventContext
The specialized EventContext to be used for CqnService.EVENT_DELETE
  • Method Details

    • create

      static CdsDeleteEventContext create(String entityName)
      Creates an EventContext already overlayed with this interface. The event is set to be CqnService.EVENT_DELETE
      Parameters:
      entityName - the name of the entity
      Returns:
      the CdsDeleteEventContext
    • 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.CqnDelete getCqn()
      Returns:
      the CqnDelete statement
    • setCqn

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

      Iterable<Map<String,Object>> getCqnValueSets()
      Returns:
      the CQN value sets, to enable batched CqnDelete statements
    • setCqnValueSets

      void setCqnValueSets(Iterable<Map<String,Object>> valueSets)
      Sets the CQN value sets, to enable batched CqnDelete statements
      Parameters:
      valueSets - the CQN value sets
    • getResult

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

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