public interface CdsDataStore
Modifier and Type | Method and Description |
---|---|
default Result |
execute(CqnDelete delete)
Executes a
CqnDelete statement . |
Result |
execute(CqnDelete delete,
Iterable<Map<String,Object>> valueSets)
Executes a
CqnDelete statement as batch with the given named
parameter values. |
Result |
execute(CqnDelete delete,
Map<String,Object> namedValues)
Executes a
CqnDelete statement with values for named parameters, see
CQL.param(String) . |
Result |
execute(CqnDelete delete,
Object... paramValues)
Executes a
CqnDelete statement with optional positional values for
indexed parameters, see CQL.param(int) . |
Result |
execute(CqnInsert insert)
Executes a
CqnInsert statement. |
default Result |
execute(CqnSelect select,
Iterable<Map<String,Object>> valueSets)
Executes a
CqnSelect statement as batch with the given named
parameter values. |
Result |
execute(CqnSelect select,
Iterable<Map<String,Object>> valueSets,
int maxBatchSize)
Executes a
CqnSelect statement as batch with the given named
parameter values. |
Result |
execute(CqnSelect select,
Map<String,Object> namedValues)
Executes a
CqnSelect statement with values for named parameters, see
CQL.param(String) . |
Result |
execute(CqnSelect select,
Object... paramValues)
Executes a
CqnSelect statement with optional positional values for
indexed parameters, see CQL.param(int) . |
default Result |
execute(CqnUpdate update)
Executes a
CqnUpdate statement. |
Result |
execute(CqnUpdate update,
Iterable<Map<String,Object>> valueSets)
Executes a
CqnUpdate statement as batch with the given named
parameter values. |
Result |
execute(CqnUpdate update,
Map<String,Object> namedValues)
Executes a
CqnUpdate statement with values for named parameters, see
CQL.param(String) . |
Result |
execute(CqnUpdate update,
Object... paramValues)
Executes a
CqnUpdate statement with optional positional values for
indexed parameters, see CQL.param(int) . |
Result |
execute(CqnUpsert upsert)
Executes a
CqnUpsert statement. |
SessionContext |
getSessionContext() |
void |
setSessionContext(SessionContext session) |
Result execute(CqnSelect select, Object... paramValues)
CqnSelect
statement with optional positional values for
indexed parameters, see CQL.param(int)
.select
- the CQN select statement to be executedparamValues
- the positional parameter valuesResult
of the queryResult execute(CqnSelect select, Map<String,Object> namedValues)
CqnSelect
statement with values for named parameters, see
CQL.param(String)
.select
- the CQN select statement to be executednamedValues
- the named parameter valuesResult
of the query@Beta default Result execute(CqnSelect select, Iterable<Map<String,Object>> valueSets)
CqnSelect
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.select
- the CQN select statement to be executedvalueSets
- the named parameter value setsResult
of the batch select@Beta Result execute(CqnSelect select, Iterable<Map<String,Object>> valueSets, int maxBatchSize)
CqnSelect
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.select
- the CQN select statement to be executedvalueSets
- the named parameter value setsmaxBatchSize
- the maximum batch sizeResult
of the batch selectResult execute(CqnInsert insert)
CqnInsert
statement.insert
- the CQN insert statement to be executedResult
of the insertResult execute(CqnUpsert upsert)
CqnUpsert
statement.upsert
- the CQN upsert statement to be executedResult
of the upsertdefault Result execute(CqnUpdate update)
CqnUpdate
statement.update
- the CQN update statement to be executedResult
of the updateResult execute(CqnUpdate update, Object... paramValues)
CqnUpdate
statement with optional positional values for
indexed parameters, see CQL.param(int)
.update
- the CQN update statement to be executedparamValues
- the positional parameter valuesResult
of the updateResult execute(CqnUpdate update, Map<String,Object> namedValues)
CqnUpdate
statement with values for named parameters, see
CQL.param(String)
.update
- the CQN update statement to be executednamedValues
- the named parameter valuesResult
of the updateResult execute(CqnUpdate update, Iterable<Map<String,Object>> valueSets)
CqnUpdate
statement as batch with the given named
parameter values.update
- the CQN update statement to be executedvalueSets
- the named parameter value setsResult
of the batch updatedefault Result execute(CqnDelete delete)
CqnDelete
statement .delete
- the CQN delete statement to be executedResult
of the deleteResult execute(CqnDelete delete, Object... paramValues)
CqnDelete
statement with optional positional values for
indexed parameters, see CQL.param(int)
.delete
- the CQN delete statement to be executedparamValues
- the positional parameter valuesResult
of the deleteResult execute(CqnDelete delete, Map<String,Object> namedValues)
CqnDelete
statement with values for named parameters, see
CQL.param(String)
.delete
- the CQN delete statement to be executednamedValues
- the named parameter valuesResult
of the deleteResult execute(CqnDelete delete, Iterable<Map<String,Object>> valueSets)
CqnDelete
statement as batch with the given named
parameter values.delete
- the CQN delete statement to be executedvalueSets
- the named parameter value setsResult
of the batch deleteSessionContext getSessionContext()
void setSessionContext(SessionContext session)
Copyright © 2023 SAP. All rights reserved.