Package com.sap.cds.ql.cqn
Interface CqnUpdate
-
- All Superinterfaces:
CqnStatement
,JSONizable
- All Known Subinterfaces:
Update<T>
public interface CqnUpdate extends CqnStatement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CqnUpdate
asUpdate()
Casts this CQN statement toCqnUpdate
.Map<String,Object>
data()
The data to be updated by this statement.Stream<String>
elements()
The elements to be updated by this statement.List<Map<String,Object>>
entries()
The entries to be updated by this statement.default boolean
isUpdate()
Returnstrue
if this is aCqnUpdate
statement.Optional<CqnPredicate>
where()
The where clause of the update statement as aCqnPredicate
.-
Methods inherited from interface com.sap.cds.ql.cqn.CqnStatement
asDelete, asInsert, asSelect, asUpsert, hints, isDelete, isInsert, isSelect, isUpsert, ref
-
Methods inherited from interface com.sap.cds.JSONizable
toJson
-
-
-
-
Method Detail
-
data
Map<String,Object> data()
The data to be updated by this statement.- Returns:
- a reference to this statement's update data
-
entries
List<Map<String,Object>> entries()
The entries to be updated by this statement.- Returns:
- a reference to this statement's update entries
-
where
Optional<CqnPredicate> where()
The where clause of the update statement as aCqnPredicate
.- Returns:
- a reference to the statement's where clause as a
CqnPredicate
wrapped in anOptional
-
elements
Stream<String> elements()
The elements to be updated by this statement.- Returns:
- a stream of the elements to be updated
-
isUpdate
default boolean isUpdate()
Description copied from interface:CqnStatement
Returnstrue
if this is aCqnUpdate
statement.- Specified by:
isUpdate
in interfaceCqnStatement
- Returns:
true
if this is an update statement, otherwisefalse
-
asUpdate
default CqnUpdate asUpdate()
Description copied from interface:CqnStatement
Casts this CQN statement toCqnUpdate
.- Specified by:
asUpdate
in interfaceCqnStatement
- Returns:
- this statement as a CqnUpdate
-
-