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.
    <D extends com.sap.cds.CdsData, T extends com.sap.cds.ql.LinkedStructuredType<D, T>>
    com.sap.cds.CdsResult<D>
    run(com.sap.cds.ql.Select<T> select, Object... paramValues)
    Executes a typed Select statement with optional positional values against the CqnService.
    <D extends com.sap.cds.CdsData, T extends com.sap.cds.ql.LinkedStructuredType<D, T>>
    com.sap.cds.CdsResult<D>
    run(com.sap.cds.ql.Select<T> select, Map<String,Object> namedValues)
    Executes a typed Select statement with named parameter values against the CqnService.
    <D extends com.sap.cds.CdsData, T extends com.sap.cds.ql.LinkedStructuredType<D, T>>
    com.sap.cds.CdsResult<D>
    run(com.sap.cds.ql.Update<T> update, Iterable<Map<String,Object>> valueSets)
    Executes a typed Update statement as batch with the given named parameter values against the CqnService.
    <D extends com.sap.cds.CdsData, T extends com.sap.cds.ql.LinkedStructuredType<D, T>>
    com.sap.cds.CdsResult<D>
    run(com.sap.cds.ql.Update<T> update, Object... paramValues)
    Executes a typed Update statement with optional positional parameter values against the CqnService.
    <D extends com.sap.cds.CdsData, T extends com.sap.cds.ql.LinkedStructuredType<D, T>>
    com.sap.cds.CdsResult<D>
    run(com.sap.cds.ql.Update<T> update, Map<String,Object> namedValues)
    Executes a typed Update statement with named parameter values 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

      <D extends com.sap.cds.CdsData, T extends com.sap.cds.ql.LinkedStructuredType<D, T>> com.sap.cds.CdsResult<D> run(com.sap.cds.ql.Select<T> select, Object... paramValues)
      Executes a typed Select statement with optional positional values against the CqnService.
      Type Parameters:
      D - The data accessor interface.
      T - The query builder interface.
      Parameters:
      select - the typed Select statement to be executed
      paramValues - the optional positional parameter values
      Returns:
      the CdsResult of the query typed with CqnService
    • 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

      <D extends com.sap.cds.CdsData, T extends com.sap.cds.ql.LinkedStructuredType<D, T>> com.sap.cds.CdsResult<D> run(com.sap.cds.ql.Select<T> select, Map<String,Object> namedValues)
      Executes a typed Select statement with named parameter values against the CqnService.
      Type Parameters:
      D - The data accessor interface.
      T - The query builder interface.
      Parameters:
      select - the typed Select statement to be executed
      namedValues - the named parameter values
      Returns:
      the CdsResult of the query typed with CqnService
    • 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 statement
    • 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 statement
    • 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 statement
    • run

      <D extends com.sap.cds.CdsData, T extends com.sap.cds.ql.LinkedStructuredType<D, T>> com.sap.cds.CdsResult<D> run(com.sap.cds.ql.Update<T> update, Object... paramValues)
      Executes a typed Update statement with optional positional parameter values against the CqnService.
      Type Parameters:
      D - The data accessor interface.
      T - The query builder interface.
      Parameters:
      update - the typed Update to be executed
      paramValues - the optional positional parameter values
      Returns:
      the CdsResult of the update statement typed with CqnService
    • 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 statement
    • run

      <D extends com.sap.cds.CdsData, T extends com.sap.cds.ql.LinkedStructuredType<D, T>> com.sap.cds.CdsResult<D> run(com.sap.cds.ql.Update<T> update, Map<String,Object> namedValues)
      Executes a typed Update statement with named parameter values against the CqnService.
      Type Parameters:
      D - The data accessor interface.
      T - The query builder interface.
      Parameters:
      update - the typed Update to be executed
      namedValues - the named parameter values
      Returns:
      the CdsResult of the update statement typed with CqnService
    • 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 statement
    • run

      <D extends com.sap.cds.CdsData, T extends com.sap.cds.ql.LinkedStructuredType<D, T>> com.sap.cds.CdsResult<D> run(com.sap.cds.ql.Update<T> update, Iterable<Map<String,Object>> valueSets)
      Executes a typed Update statement as batch with the given named parameter values against the CqnService.
      Type Parameters:
      D - The data accessor interface.
      T - The query builder interface.
      Parameters:
      update - the typed Update to be executed
      valueSets - the named parameter values
      Returns:
      the CdsResult of the update statement typed with CqnService
    • 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 statement
    • 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 statement
    • 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 statement