Interface AsyncCqnService

All Superinterfaces:
Service

public interface AsyncCqnService extends Service
The interface defining the asynchronous consumption API of an outboxed CqnService. All methods of this interface are non-blocking and return immediately since they are submitted to the outbox and executed asynchronously.
  • Method Details

    • of

      static AsyncCqnService of(CqnService service, OutboxService outbox)
      Returns an outboxed instance of the given CqnService as a AsyncCqnService.
      Parameters:
      service - the CqnService to be outboxed
      outbox - the OutboxService to be used for outboxing
      Returns:
      an outboxed instance of the given CqnService as a AsyncCqnService
    • run

      void run(com.sap.cds.ql.cqn.CqnInsert insert)
      Executes a CqnInsert statement against the AsyncCqnService.
      Parameters:
      insert - the CqnInsert to be executed
    • run

      void run(com.sap.cds.ql.cqn.CqnUpsert upsert)
      Executes a CqnUpsert statement against the AsyncCqnService.
      Parameters:
      upsert - the CqnUpsert to be executed
    • run

      void run(com.sap.cds.ql.cqn.CqnUpdate update, Object... paramValues)
      Executes a CqnUpdate statement with optional positional parameter values against the AsyncCqnService.
      Parameters:
      update - the CqnUpdate to be executed
      paramValues - the optional positional parameter values
    • run

      void run(com.sap.cds.ql.cqn.CqnUpdate update, Map<String,Object> namedValues)
      Executes a CqnUpdate statement with named parameter values against the AsyncCqnService.
      Parameters:
      update - the CqnUpdate to be executed
      namedValues - the named parameter values
    • run

      void run(com.sap.cds.ql.cqn.CqnUpdate update, Iterable<Map<String,Object>> valueSets)
      Executes a CqnUpdate statement as batch with the given named parameter values against the AsyncCqnService.
      Parameters:
      update - the CqnUpdate to be executed
      valueSets - the named parameter values
    • run

      void run(com.sap.cds.ql.cqn.CqnDelete delete, Object... paramValues)
      Executes a CqnDelete statement with optional positional parameter values against the AsyncCqnService.
      Parameters:
      delete - the CqnDelete to be executed
      paramValues - the optional positional parameter values
    • run

      void run(com.sap.cds.ql.cqn.CqnDelete delete, Map<String,Object> namedValues)
      Executes a CqnDelete statement with named parameter values against the AsyncCqnService.
      Parameters:
      delete - the CqnDelete to be executed
      namedValues - the named parameter values
    • run

      void run(com.sap.cds.ql.cqn.CqnDelete delete, Iterable<Map<String,Object>> valueSets)
      Executes a CqnDelete statement as batch with the given named parameter values against the AsyncCqnService.
      Parameters:
      delete - the CqnDelete to be executed
      valueSets - the named parameter values