Package com.sap.cds
Interface CdsDataStore
-
public interface CdsDataStore
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Result
execute(CqnDelete delete)
Executes aCqnDelete
statement .Result
execute(CqnDelete delete, Iterable<Map<String,Object>> valueSets)
Executes aCqnDelete
statement as batch with the given named parameter values.Result
execute(CqnDelete delete, Object... paramValues)
Executes aCqnDelete
statement with optional positional values for indexed parameters, seeCQL.param(int)
.Result
execute(CqnDelete delete, Map<String,Object> namedValues)
Executes aCqnDelete
statement with values for named parameters, seeCQL.param(String)
.Result
execute(CqnInsert insert)
Executes aCqnInsert
statement.default Result
execute(CqnSelect select, Iterable<Map<String,Object>> valueSets)
Executes aCqnSelect
statement as batch with the given named parameter values.Result
execute(CqnSelect select, Iterable<Map<String,Object>> valueSets, int maxBatchSize)
Executes aCqnSelect
statement as batch with the given named parameter values.Result
execute(CqnSelect select, Object... paramValues)
Executes aCqnSelect
statement with optional positional values for indexed parameters, seeCQL.param(int)
.Result
execute(CqnSelect select, Map<String,Object> namedValues)
Executes aCqnSelect
statement with values for named parameters, seeCQL.param(String)
.default Result
execute(CqnUpdate update)
Executes aCqnUpdate
statement.Result
execute(CqnUpdate update, Iterable<Map<String,Object>> valueSets)
Executes aCqnUpdate
statement as batch with the given named parameter values.Result
execute(CqnUpdate update, Object... paramValues)
Executes aCqnUpdate
statement with optional positional values for indexed parameters, seeCQL.param(int)
.Result
execute(CqnUpdate update, Map<String,Object> namedValues)
Executes aCqnUpdate
statement with values for named parameters, seeCQL.param(String)
.Result
execute(CqnUpsert upsert)
Executes aCqnUpsert
statement.SessionContext
getSessionContext()
void
setSessionContext(SessionContext session)
-
-
-
Method Detail
-
execute
Result execute(CqnSelect select, Object... paramValues)
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
Result execute(CqnSelect select, Map<String,Object> namedValues)
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
@Beta default Result execute(CqnSelect select, Iterable<Map<String,Object>> valueSets)
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
@Beta Result execute(CqnSelect select, Iterable<Map<String,Object>> valueSets, int maxBatchSize)
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
Result execute(CqnInsert insert)
Executes aCqnInsert
statement.- Parameters:
insert
- the CQN insert statement to be executed- Returns:
- the
Result
of the insert
-
execute
Result execute(CqnUpsert upsert)
Executes aCqnUpsert
statement.- Parameters:
upsert
- the CQN upsert statement to be executed- Returns:
- the
Result
of the upsert
-
execute
default Result execute(CqnUpdate update)
Executes aCqnUpdate
statement.- Parameters:
update
- the CQN update statement to be executed- Returns:
- the
Result
of the update
-
execute
Result execute(CqnUpdate update, Object... paramValues)
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
Result execute(CqnUpdate update, Map<String,Object> namedValues)
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
Result execute(CqnUpdate update, Iterable<Map<String,Object>> valueSets)
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
default Result execute(CqnDelete delete)
Executes aCqnDelete
statement .- Parameters:
delete
- the CQN delete statement to be executed- Returns:
- the
Result
of the delete
-
execute
Result execute(CqnDelete delete, Object... paramValues)
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
Result execute(CqnDelete delete, Map<String,Object> namedValues)
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
Result execute(CqnDelete delete, Iterable<Map<String,Object>> valueSets)
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
void setSessionContext(SessionContext session)
-
-