Package com.sap.cds
Interface CdsDataStore
public interface CdsDataStore
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddefault ResultExecutes aCqnDeletestatement .Executes aCqnDeletestatement as batch with the given named parameter values.Executes aCqnDeletestatement with optional positional values for indexed parameters, seeCQL.param(int).Executes aCqnDeletestatement with values for named parameters, seeCQL.param(String).Executes aCqnInsertstatement.Executes aCqnSelectstatement as batch with the given named parameter values.Executes aCqnSelectstatement as batch with the given named parameter values.Executes aCqnSelectstatement with optional positional values for indexed parameters, seeCQL.param(int).Executes aCqnSelectstatement with values for named parameters, seeCQL.param(String).default ResultExecutes aCqnUpdatestatement.Executes aCqnUpdatestatement as batch with the given named parameter values.Executes aCqnUpdatestatement with optional positional values for indexed parameters, seeCQL.param(int).Executes aCqnUpdatestatement with values for named parameters, seeCQL.param(String).Executes aCqnUpsertstatement.voidsetSessionContext(SessionContext session)
-
Method Details
-
execute
Executes aCqnSelectstatement with optional positional values for indexed parameters, seeCQL.param(int).- Parameters:
select- the CQN select statement to be executedparamValues- the positional parameter values- Returns:
- the
Resultof the query - Throws:
CdsLockTimeoutException- if the statement useslockingbut a lock can't be acquired
-
execute
Executes aCqnSelectstatement with values for named parameters, seeCQL.param(String).- Parameters:
select- the CQN select statement to be executednamedValues- the named parameter values- Returns:
- the
Resultof the query - Throws:
CdsLockTimeoutException- if the statement useslockingbut a lock can't acquired
-
execute
Executes aCqnSelectstatement as batch with the given named parameter values. Named parameters are required either in the where clause, or in one infix filter of the from clause. If the number of entries in valueSets is larger than the default batch size, the select statement is executed multiple times and the result sets are combined, in this case order by clauses are not supported and an exception is thrown.- Parameters:
select- the CQN select statement to be executedvalueSets- the named parameter value sets- Returns:
- the
Resultof the batch select - Throws:
CdsLockTimeoutException- if the statement useslockingbut a lock can't acquired
-
execute
Executes aCqnSelectstatement as batch with the given named parameter values. Named parameters are required either in the where clause, or in one infix filter of the from clause. If the number of entries in valueSets is larger than maxBatchSize, the select statement is executed multiple times and the result sets are combined, in this case order by clauses are not supported and an exception is thrown.- Parameters:
select- the CQN select statement to be executedvalueSets- the named parameter value setsmaxBatchSize- the maximum batch size- Returns:
- the
Resultof the batch select - Throws:
CdsLockTimeoutException- if the query useslockingbut a lock can't acquired
-
execute
Executes aCqnInsertstatement.- Parameters:
insert- the CQN insert statement to be executed- Returns:
- the
Resultof the insert
-
execute
Executes aCqnUpsertstatement.- Parameters:
upsert- the CQN upsert statement to be executed- Returns:
- the
Resultof the upsert
-
execute
Executes aCqnUpdatestatement.- Parameters:
update- the CQN update statement to be executed- Returns:
- the
Resultof the update
-
execute
Executes aCqnUpdatestatement with optional positional values for indexed parameters, seeCQL.param(int).- Parameters:
update- the CQN update statement to be executedparamValues- the positional parameter values- Returns:
- the
Resultof the update
-
execute
Executes aCqnUpdatestatement with values for named parameters, seeCQL.param(String).- Parameters:
update- the CQN update statement to be executednamedValues- the named parameter values- Returns:
- the
Resultof the update
-
execute
Executes aCqnUpdatestatement as batch with the given named parameter values.- Parameters:
update- the CQN update statement to be executedvalueSets- the named parameter value sets- Returns:
- the
Resultof the batch update
-
execute
Executes aCqnDeletestatement .- Parameters:
delete- the CQN delete statement to be executed- Returns:
- the
Resultof the delete
-
execute
Executes aCqnDeletestatement with optional positional values for indexed parameters, seeCQL.param(int).- Parameters:
delete- the CQN delete statement to be executedparamValues- the positional parameter values- Returns:
- the
Resultof the delete
-
execute
Executes aCqnDeletestatement with values for named parameters, seeCQL.param(String).- Parameters:
delete- the CQN delete statement to be executednamedValues- the named parameter values- Returns:
- the
Resultof the delete
-
execute
Executes aCqnDeletestatement as batch with the given named parameter values.- Parameters:
delete- the CQN delete statement to be executedvalueSets- the named parameter value sets- Returns:
- the
Resultof the batch delete
-
getSessionContext
SessionContext getSessionContext() -
setSessionContext
-
deleteAll
-