public interface Insert extends CqnInsert
CdsDataStore
.CqnXsert.Kind
Modifier and Type | Method and Description |
---|---|
static Insert |
copy(CqnInsert insert)
|
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 <R extends StructuredType<R>,T extends StructuredType<T>> |
into(Class<R> entity,
Function<R,T> path)
Creates an insert statement to insert entries into a specified entity set.
|
static Insert |
into(CqnStructuredTypeRef ref)
Creates an insert statement to insert entries into a specified entity set.
|
static <E extends StructuredType<?>> |
into(E entity)
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.
|
asDelete, asSelect, asUpdate, asUpsert, isDelete, isSelect, isUpdate, isUpsert, ref
toJson
static Insert into(String qualifiedName)
qualifiedName
- the fully qualified name of the CDS entity setstatic Insert into(CqnStructuredTypeRef ref)
ref
- the ref to the entitystatic <E extends StructuredType<?>> Insert into(E entity)
E
- the type of the entity setentity
- the structured type representing the 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)
E
- the type of the entity setentity
- the static model representation of the entity setstatic <R extends StructuredType<R>,T extends StructuredType<T>> Insert into(Class<R> entity, Function<R,T> path)
R
- the type of the root entityT
- the type of the target entityentity
- 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 copy(CqnInsert insert)
insert
- the CqnInsert
to be copiedstatic 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 © 2022 SAP. All rights reserved.