Package com.sap.cds
Interface CdsList<T extends Map<String,Object>>
- All Superinterfaces:
Collection<T>
,Iterable<T>
,JSONizable
,List<T>
A list of data to be used in
Insert
, Update
and Upsert
statements.
In deep updates and upserts, nested lists can be marked as a
delta representation
, which may contain entities that
are marked for removal
.-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Creates a new instance ofCdsList
.Returns aCdsList
backed by the given list.create
(T... entries) Returns aCdsList
with the given entries.delta()
delta
(T... deltaEntries) Returns a deltaCdsList
with the given entries.boolean
isDelta()
void
setDelta
(boolean delta) Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface com.sap.cds.JSONizable
toJson
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Field Details
-
factory
-
-
Method Details
-
create
Creates a new instance ofCdsList
.- Returns:
- an empty
CdsList
-
create
Returns aCdsList
with the given entries.- Parameters:
entries
- the list entries- Returns:
- a
CdsList
with the given entries
-
delta
Returns a deltaCdsList
with the given entries.- Parameters:
deltaEntries
- the delta list entries- Returns:
- a delta
CdsList
with the given entries
-
create
Returns aCdsList
backed by the given list.- Parameters:
backingList
- the backing list- Returns:
- a
CdsList
backed by backingList
-
delta
- Returns:
- this list instance
-
setDelta
void setDelta(boolean delta) Marks or unmarks this list as a delta representation for a nested collection in deepupdate
orupsert
data.- Parameters:
delta
- true to mark as delta, false to unmark
-
isDelta
boolean isDelta()Indicates if this list is marked as a delta representation for a nested collection in deepupdate
orupsert
data- Returns:
- true if this instance if marked as delta
-