Package com.sap.cds
Interface CdsDataStore
public interface CdsDataStore
-
Method Summary
Modifier and TypeMethodDescriptiondefault Result
Executes aCqnDelete
statement .Executes aCqnDelete
statement as batch with the given named parameter values.Executes aCqnDelete
statement with optional positional values for indexed parameters, seeCQL.param(int)
.Executes aCqnDelete
statement with values for named parameters, seeCQL.param(String)
.Executes aCqnInsert
statement.default Result
Executes aCqnSelect
statement as batch with the given named parameter values.Executes aCqnSelect
statement as batch with the given named parameter values.Executes aCqnSelect
statement with optional positional values for indexed parameters, seeCQL.param(int)
.Executes aCqnSelect
statement with values for named parameters, seeCQL.param(String)
.default Result
Executes aCqnUpdate
statement.Executes aCqnUpdate
statement as batch with the given named parameter values.Executes aCqnUpdate
statement with optional positional values for indexed parameters, seeCQL.param(int)
.Executes aCqnUpdate
statement with values for named parameters, seeCQL.param(String)
.Executes aCqnUpsert
statement.void
setSessionContext
(SessionContext session)
-
Method Details
-
execute
Executes aCqnSelect
statement 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
Result
of the query
-
execute
Executes aCqnSelect
statement with values for named parameters, seeCQL.param(String)
.- Parameters:
select
- the CQN select statement to be executednamedValues
- the named parameter values- Returns:
- the
Result
of the query
-
execute
Executes aCqnSelect
statement 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
Result
of the batch select
-
execute
Executes aCqnSelect
statement 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
Result
of the batch select
-
execute
Executes aCqnInsert
statement.- Parameters:
insert
- the CQN insert statement to be executed- Returns:
- the
Result
of the insert
-
execute
Executes aCqnUpsert
statement.- Parameters:
upsert
- the CQN upsert statement to be executed- Returns:
- the
Result
of the upsert
-
execute
Executes aCqnUpdate
statement.- Parameters:
update
- the CQN update statement to be executed- Returns:
- the
Result
of the update
-
execute
Executes aCqnUpdate
statement 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
Result
of the update
-
execute
Executes aCqnUpdate
statement with values for named parameters, seeCQL.param(String)
.- Parameters:
update
- the CQN update statement to be executednamedValues
- the named parameter values- Returns:
- the
Result
of the update
-
execute
Executes aCqnUpdate
statement as batch with the given named parameter values.- Parameters:
update
- the CQN update statement to be executedvalueSets
- the named parameter value sets- Returns:
- the
Result
of the batch update
-
execute
Executes aCqnDelete
statement .- Parameters:
delete
- the CQN delete statement to be executed- Returns:
- the
Result
of the delete
-
execute
Executes aCqnDelete
statement 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
Result
of the delete
-
execute
Executes aCqnDelete
statement with values for named parameters, seeCQL.param(String)
.- Parameters:
delete
- the CQN delete statement to be executednamedValues
- the named parameter values- Returns:
- the
Result
of the delete
-
execute
Executes aCqnDelete
statement as batch with the given named parameter values.- Parameters:
delete
- the CQN delete statement to be executedvalueSets
- the named parameter value sets- Returns:
- the
Result
of the batch delete
-
getSessionContext
SessionContext getSessionContext() -
setSessionContext
-