Interface CqnService

All Superinterfaces:
Service
All Known Subinterfaces:
ApplicationService, DraftService, PersistenceService, RemoteService

public interface CqnService extends Service
The interface defining the consumption API of a CqnService. Such a service is capable of executing CQN queries.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.sap.cds.Result
    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 CqnService.
    com.sap.cds.Result
    run(com.sap.cds.ql.cqn.CqnDelete delete, Object... paramValues)
    Executes a CqnDelete statement with optional positional parameter values against the CqnService.
    com.sap.cds.Result
    run(com.sap.cds.ql.cqn.CqnDelete delete, Map<String,Object> namedValues)
    Executes a CqnDelete statement with named parameter values against the CqnService.
    com.sap.cds.Result
    run(com.sap.cds.ql.cqn.CqnInsert insert)
    Executes a CqnInsert statement against the CqnService.
    com.sap.cds.Result
    run(com.sap.cds.ql.cqn.CqnSelect select, Object... paramValues)
    Executes a CqnSelect statement with optional positional parameter values against the CqnService.
    com.sap.cds.Result
    run(com.sap.cds.ql.cqn.CqnSelect select, Map<String,Object> namedValues)
    Executes a CqnSelect statement with named parameter values against the CqnService.
    com.sap.cds.Result
    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 CqnService.
    com.sap.cds.Result
    run(com.sap.cds.ql.cqn.CqnUpdate update, Object... paramValues)
    Executes a CqnUpdate statement with optional positional parameter values against the CqnService.
    com.sap.cds.Result
    run(com.sap.cds.ql.cqn.CqnUpdate update, Map<String,Object> namedValues)
    Executes a CqnUpdate statement with named parameter values against the CqnService.
    com.sap.cds.Result
    run(com.sap.cds.ql.cqn.CqnUpsert upsert)
    Executes a CqnUpsert statement against the CqnService.

    Methods inherited from interface com.sap.cds.services.Service

    after, after, after, after, before, before, before, before, emit, getName, on, on, on, on
  • Field Details

  • Method Details

    • run

      com.sap.cds.Result run(com.sap.cds.ql.cqn.CqnSelect select, Object... paramValues)
      Executes a CqnSelect statement with optional positional parameter values against the CqnService.
      Parameters:
      select - the CqnSelect to be executed
      paramValues - the optional positional parameter values
      Returns:
      the Result of the query
    • run

      com.sap.cds.Result run(com.sap.cds.ql.cqn.CqnSelect select, Map<String,Object> namedValues)
      Executes a CqnSelect statement with named parameter values against the CqnService.
      Parameters:
      select - the CqnSelect to be executed
      namedValues - the named parameter values
      Returns:
      the Result of the query
    • run

      com.sap.cds.Result run(com.sap.cds.ql.cqn.CqnInsert insert)
      Executes a CqnInsert statement against the CqnService.
      Parameters:
      insert - the CqnInsert to be executed
      Returns:
      the Result of the insert
    • run

      com.sap.cds.Result run(com.sap.cds.ql.cqn.CqnUpsert upsert)
      Executes a CqnUpsert statement against the CqnService.
      Parameters:
      upsert - the CqnUpsert to be executed
      Returns:
      the Result of the upsert
    • run

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

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

      com.sap.cds.Result 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 CqnService.
      Parameters:
      update - the CqnUpdate to be executed
      valueSets - the named parameter values
      Returns:
      the Result of the update
    • run

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

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

      com.sap.cds.Result 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 CqnService.
      Parameters:
      delete - the CqnDelete to be executed
      valueSets - the named parameter values
      Returns:
      the Result of the delete