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
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a new instance ofCdsList.Returns aCdsListbacked by the given list.create(T... entries) Returns aCdsListwith the given entries.delta()delta(T... deltaEntries) Returns a deltaCdsListwith the given entries.booleanisDelta()voidsetDelta(boolean delta) Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface com.sap.cds.JSONizable
toJsonMethods 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 aCdsListwith the given entries.- Parameters:
entries- the list entries- Returns:
- a
CdsListwith the given entries
-
delta
Returns a deltaCdsListwith the given entries.- Parameters:
deltaEntries- the delta list entries- Returns:
- a delta
CdsListwith the given entries
-
create
Returns aCdsListbacked by the given list.- Parameters:
backingList- the backing list- Returns:
- a
CdsListbacked 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 deepupdateorupsertdata.- 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 deepupdateorupsertdata- Returns:
- true if this instance if marked as delta
-