public interface Upsert extends CqnUpsert
CdsDataStore
.CqnXsert.Kind
Modifier and Type | Method and Description |
---|---|
static Upsert |
cqn(String cqnUpsert)
Creates an upsert statement to upsert data for a specified entity set.
|
Upsert |
entries(Iterable<? extends Map<String,?>> entries)
Sets the entries to be upserted into the entity set.
|
Upsert |
entry(Map<String,?> entry)
Adds a single entry to be upserted into the entity set.
|
Upsert |
entry(String elementName,
Object value)
Adds a single entry to be upserted into the entity set.
|
static Upsert |
into(CdsEntity entity)
Creates an upsert statement to upsert entries into a specified entity set.
|
static <E extends StructuredType<E>> |
into(Class<E> entity)
Creates an upsert statement to upsert entries into a specified entity set.
|
static <E extends StructuredType<E>,R extends StructuredType<R>> |
into(Class<E> entity,
Function<E,R> path)
Creates an upsert statement to upsert entries into a specified entity set.
|
static Upsert |
into(String qualifiedName)
Creates an upsert statement to upsert entries into a specified entity set.
|
static Upsert |
into(String qualifiedName,
UnaryOperator<StructuredType<?>> path)
Creates an upsert statement to upsert entries into a specified entity set.
|
accept
toJson
static Upsert into(String qualifiedName)
qualifiedName
- the fully qualified name of the CDS entity setstatic Upsert into(String qualifiedName, UnaryOperator<StructuredType<?>> path)
qualifiedName
- the fully qualified name of the CDS entity setpath
- a path expression navigating from the root entity to the
target entity of the upsert statementstatic <E extends StructuredType<E>> Upsert into(Class<E> entity)
entity
- the static model representation of the entity setstatic <E extends StructuredType<E>,R extends StructuredType<R>> Upsert into(Class<E> entity, Function<E,R> path)
entity
- the static model representation of the entity setpath
- a path expression navigating from the root entity to the target
entity of the upsert statementstatic Upsert into(CdsEntity entity)
entity
- the model representation of the entity set obtained by
reflectionCdsModel.findEntity(String)
,
CdsModel.entities()
static Upsert cqn(String cqnUpsert)
cqnUpsert
- the CQN representation of the upsert statementUpsert entries(Iterable<? extends Map<String,?>> entries)
entries
- a collection of data where every element is the canonical
representationUpsert entry(Map<String,?> entry)
The value can be deeply structured to represent a structured document:
entry
- the data to be upserted as a mapUpsert entry(String elementName, Object value)
The value can be deeply structured to represent a structured document:
elementName
- the element name of the target entity for the value to be
upsertedvalue
- the data to be upserted for the elementCopyright © 2019 SAP. All rights reserved.