public interface CdsList<T extends Map<String,Object>> extends List<T>, JSONizable
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
.Modifier and Type | Interface and Description |
---|---|
static interface |
CdsList.Factory |
Modifier and Type | Field and Description |
---|---|
static CdsList.Factory |
factory |
Modifier and Type | Method and Description |
---|---|
static <T extends Map<String,Object>> |
create()
Creates a new instance of
CdsList . |
static <T extends Map<String,Object>> |
create(List<T> backingList)
Returns a
CdsList backed by the given list. |
static <T extends Map<String,Object>> |
create(T... entries)
Returns a
CdsList with the given entries. |
default CdsList<T> |
delta()
|
static <T extends Map<String,Object>> |
delta(T... deltaEntries)
Returns a delta
CdsList with the given entries. |
boolean |
isDelta()
|
void |
setDelta(boolean delta)
|
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
parallelStream, removeIf, stream
toJson
static final CdsList.Factory factory
static <T extends Map<String,Object>> CdsList<T> create()
CdsList
.CdsList
@SafeVarargs static <T extends Map<String,Object>> CdsList<T> create(T... entries)
CdsList
with the given entries.entries
- the list entriesCdsList
with the given entries@SafeVarargs static <T extends Map<String,Object>> CdsList<T> delta(T... deltaEntries)
CdsList
with the given entries.deltaEntries
- the delta list entriesCdsList
with the given entriesstatic <T extends Map<String,Object>> CdsList<T> create(List<T> backingList)
CdsList
backed by the given list.backingList
- the backing listCdsList
backed by backingListvoid setDelta(boolean delta)
update
or upsert
data.delta
- true to mark as delta, false to unmarkCopyright © 2023 SAP. All rights reserved.