public interface Insert extends CqnInsert
CdsDataStore
.CqnXsert.Kind
Modifier and Type | Method and Description |
---|---|
static Insert |
cqn(String cqnInsert)
Creates an insert statement from a given CQN String.
|
Insert |
entries(Iterable<? extends Map<String,?>> entries)
Sets the entries to be inserted into the entity set.
|
Insert |
entry(Map<String,?> entry)
Add a single entry to be inserted into the entity set.
|
Insert |
entry(String elementName,
Object value)
Add a single entry to be inserted into the entity set.
|
static Insert |
into(CdsEntity entity)
Creates an insert statement to insert entries into a specified entity set.
|
static <E extends StructuredType<E>> |
into(Class<E> entity)
Creates an insert statement to insert 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 insert statement to insert entries into a specified entity set.
|
static Insert |
into(String qualifiedName)
Creates an insert statement to insert entries into a specified entity set.
|
static Insert |
into(String entityName,
UnaryOperator<StructuredType<?>> path)
Creates an insert statement to insert entries into a specified entity set.
|
accept
toJson
static Insert into(String qualifiedName)
qualifiedName
- the fully qualified name of the CDS entity setstatic Insert into(String entityName, UnaryOperator<StructuredType<?>> path)
entityName
- the root entity name of the path expressionpath
- a path expression navigating from the root entity to the
target entity of the insert statementstatic <E extends StructuredType<E>> Insert into(Class<E> entity)
entity
- the static model representation of the entity setstatic <E extends StructuredType<E>,R extends StructuredType<R>> Insert 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 insert statementstatic Insert into(CdsEntity entity)
entity
- the model representation of the entity set obtained by
reflectionCdsModel.findEntity(String)
,
CdsModel.entities()
static Insert cqn(String cqnInsert)
cqnInsert
- the CQN representation of the insert statementInsert entries(Iterable<? extends Map<String,?>> entries)
entries
- a collection of data where every element is the canonical
representationInsert entry(Map<String,?> entry)
The value can be deeply structured to represent a structured document:
entry
- the data to be inserted as a mapInsert 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
insertedvalue
- the data to be inserted for the elementCopyright © 2019 SAP. All rights reserved.