Package com.sap.cds.services.cds
Interface CqnService
- All Superinterfaces:
Service
- All Known Subinterfaces:
ApplicationService,DraftService,PersistenceService,RemoteService
The interface defining the consumption API of a
CqnService. Such a service is capable of
executing CQN queries.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncom.sap.cds.ResultExecutes aCqnDeletestatement as batch with the given named parameter values against theCqnService.com.sap.cds.ResultExecutes aCqnDeletestatement with optional positional parameter values against theCqnService.com.sap.cds.ResultExecutes aCqnDeletestatement with named parameter values against theCqnService.com.sap.cds.Resultrun(com.sap.cds.ql.cqn.CqnInsert insert) Executes aCqnInsertstatement against theCqnService.com.sap.cds.ResultExecutes aCqnSelectstatement with optional positional parameter values against theCqnService.com.sap.cds.ResultExecutes aCqnSelectstatement with named parameter values against theCqnService.com.sap.cds.ResultExecutes aCqnUpdatestatement as batch with the given named parameter values against theCqnService.com.sap.cds.ResultExecutes aCqnUpdatestatement with optional positional parameter values against theCqnService.com.sap.cds.ResultExecutes aCqnUpdatestatement with named parameter values against theCqnService.com.sap.cds.Resultrun(com.sap.cds.ql.cqn.CqnUpsert upsert) Executes aCqnUpsertstatement against theCqnService.<D extends com.sap.cds.CdsData,T extends com.sap.cds.ql.LinkedStructuredType<D, T>>
com.sap.cds.CdsResult<D>Executes a typedSelectstatement with optional positional values against theCqnService.<D extends com.sap.cds.CdsData,T extends com.sap.cds.ql.LinkedStructuredType<D, T>>
com.sap.cds.CdsResult<D>Executes a typedSelectstatement with named parameter values against theCqnService.<D extends com.sap.cds.CdsData,T extends com.sap.cds.ql.LinkedStructuredType<D, T>>
com.sap.cds.CdsResult<D>Executes a typedUpdatestatement as batch with the given named parameter values against theCqnService.<D extends com.sap.cds.CdsData,T extends com.sap.cds.ql.LinkedStructuredType<D, T>>
com.sap.cds.CdsResult<D>Executes a typedUpdatestatement with optional positional parameter values against theCqnService.<D extends com.sap.cds.CdsData,T extends com.sap.cds.ql.LinkedStructuredType<D, T>>
com.sap.cds.CdsResult<D>Executes a typedUpdatestatement with named parameter values against theCqnService.
-
Field Details
-
EVENT_READ
- See Also:
-
EVENT_CREATE
- See Also:
-
EVENT_UPDATE
- See Also:
-
EVENT_DELETE
- See Also:
-
EVENT_UPSERT
- See Also:
-
-
Method Details
-
run
Executes aCqnSelectstatement with optional positional parameter values against theCqnService.- Parameters:
select- theCqnSelectto be executedparamValues- the optional positional parameter values- Returns:
- the
Resultof the query
-
run
<D extends com.sap.cds.CdsData,T extends com.sap.cds.ql.LinkedStructuredType<D, com.sap.cds.CdsResult<D> runT>> (com.sap.cds.ql.Select<T> select, Object... paramValues) Executes a typedSelectstatement with optional positional values against theCqnService.- Type Parameters:
D- The data accessor interface.T- The query builder interface.- Parameters:
select- the typedSelectstatement to be executedparamValues- the optional positional parameter values- Returns:
- the
CdsResultof the query typed withCqnService
-
run
Executes aCqnSelectstatement with named parameter values against theCqnService.- Parameters:
select- theCqnSelectto be executednamedValues- the named parameter values- Returns:
- the
Resultof the query
-
run
<D extends com.sap.cds.CdsData,T extends com.sap.cds.ql.LinkedStructuredType<D, com.sap.cds.CdsResult<D> runT>> (com.sap.cds.ql.Select<T> select, Map<String, Object> namedValues) Executes a typedSelectstatement with named parameter values against theCqnService.- Type Parameters:
D- The data accessor interface.T- The query builder interface.- Parameters:
select- the typedSelectstatement to be executednamedValues- the named parameter values- Returns:
- the
CdsResultof the query typed withCqnService
-
run
com.sap.cds.Result run(com.sap.cds.ql.cqn.CqnInsert insert) Executes aCqnInsertstatement against theCqnService.- Parameters:
insert- theCqnInsertto be executed- Returns:
- the
Resultof the insert statement
-
run
com.sap.cds.Result run(com.sap.cds.ql.cqn.CqnUpsert upsert) Executes aCqnUpsertstatement against theCqnService.- Parameters:
upsert- theCqnUpsertto be executed- Returns:
- the
Resultof the upsert statement
-
run
Executes aCqnUpdatestatement with optional positional parameter values against theCqnService.- Parameters:
update- theCqnUpdateto be executedparamValues- the optional positional parameter values- Returns:
- the
Resultof the update statement
-
run
<D extends com.sap.cds.CdsData,T extends com.sap.cds.ql.LinkedStructuredType<D, com.sap.cds.CdsResult<D> runT>> (com.sap.cds.ql.Update<T> update, Object... paramValues) Executes a typedUpdatestatement with optional positional parameter values against theCqnService.- Type Parameters:
D- The data accessor interface.T- The query builder interface.- Parameters:
update- the typedUpdateto be executedparamValues- the optional positional parameter values- Returns:
- the
CdsResultof the update statement typed withCqnService
-
run
Executes aCqnUpdatestatement with named parameter values against theCqnService.- Parameters:
update- theCqnUpdateto be executednamedValues- the named parameter values- Returns:
- the
Resultof the update statement
-
run
<D extends com.sap.cds.CdsData,T extends com.sap.cds.ql.LinkedStructuredType<D, com.sap.cds.CdsResult<D> runT>> (com.sap.cds.ql.Update<T> update, Map<String, Object> namedValues) Executes a typedUpdatestatement with named parameter values against theCqnService.- Type Parameters:
D- The data accessor interface.T- The query builder interface.- Parameters:
update- the typedUpdateto be executednamedValues- the named parameter values- Returns:
- the
CdsResultof the update statement typed withCqnService
-
run
Executes aCqnUpdatestatement as batch with the given named parameter values against theCqnService.- Parameters:
update- theCqnUpdateto be executedvalueSets- the named parameter values- Returns:
- the
Resultof the update statement
-
run
<D extends com.sap.cds.CdsData,T extends com.sap.cds.ql.LinkedStructuredType<D, com.sap.cds.CdsResult<D> runT>> (com.sap.cds.ql.Update<T> update, Iterable<Map<String, Object>> valueSets) Executes a typedUpdatestatement as batch with the given named parameter values against theCqnService.- Type Parameters:
D- The data accessor interface.T- The query builder interface.- Parameters:
update- the typedUpdateto be executedvalueSets- the named parameter values- Returns:
- the
CdsResultof the update statement typed withCqnService
-
run
Executes aCqnDeletestatement with optional positional parameter values against theCqnService.- Parameters:
delete- theCqnDeleteto be executedparamValues- the optional positional parameter values- Returns:
- the
Resultof the delete statement
-
run
Executes aCqnDeletestatement with named parameter values against theCqnService.- Parameters:
delete- theCqnDeleteto be executednamedValues- the named parameter values- Returns:
- the
Resultof the delete statement
-
run
Executes aCqnDeletestatement as batch with the given named parameter values against theCqnService.- Parameters:
delete- theCqnDeleteto be executedvalueSets- the named parameter values- Returns:
- the
Resultof the delete statement
-