T - the type of the entity set targeted by this delete statementpublic interface Delete<T extends StructuredType<?>> extends CqnDelete
CdsDataStore.| Modifier and Type | Method and Description |
|---|---|
Delete<T> |
byId(Object idValue)
Sets the where condition of the delete statement, requiring that the value of
the single key element of the target entity set is equal to the given
idValue.
|
static Delete<StructuredType<?>> |
copy(CqnDelete delete)
|
static Delete<StructuredType<?>> |
cqn(String cqnDelete)
Creates a delete statement to delete entries from a specified entity set.
|
static Delete<StructuredType<?>> |
from(CdsEntity entity)
Creates a delete statement to delete entries from a specified entity set.
|
static Delete<StructuredType<?>> |
from(CdsEntity entity,
UnaryOperator<StructuredType<?>> path)
Creates a delete statement to delete entries from a specified entity set.
|
static <E extends StructuredType<E>> |
from(Class<E> entity)
Creates a delete statement to delete entries from a specified entity set.
|
static <E extends StructuredType<E>,R extends StructuredType<R>> |
from(Class<E> entity,
Function<E,R> path)
Creates a delete statement to delete entries from a specified entity set.
|
static Delete<StructuredType<?>> |
from(CqnStructuredTypeRef ref)
Creates a delete statement to delete entries from a specified entity set.
|
static <E extends StructuredType<?>> |
from(E entity)
Creates a delete statement to delete entries from a specified entity set.
|
static Delete<StructuredType<?>> |
from(String qualifiedName)
Creates a delete statement to delete entries from a specified entity set.
|
static Delete<StructuredType<?>> |
from(String rootEntityName,
UnaryOperator<StructuredType<?>> path)
Creates a delete statement to delete entries from a specified entity set.
|
Delete<T> |
matching(Map<String,?> values)
Sets the where condition of the delete statement.
|
Delete<T> |
where(CqnPredicate predicate)
Sets the where condition of the delete statement.
|
Delete<T> |
where(Function<T,CqnPredicate> predicate)
Sets the where condition of the delete statement.
|
asInsert, asSelect, asUpdate, asUpsert, isInsert, isSelect, isUpdate, isUpsert, reftoJsonstatic Delete<StructuredType<?>> from(String qualifiedName)
qualifiedName - the fully qualified name of the CDS entity setstatic Delete<StructuredType<?>> from(CqnStructuredTypeRef ref)
ref - the ref to the entitystatic <E extends StructuredType<?>> Delete<E> from(E entity)
E - the type of the entity setentity - the structured type representing the entity setstatic Delete<StructuredType<?>> from(String rootEntityName, UnaryOperator<StructuredType<?>> path)
rootEntityName - the fully qualified name of the CDS entity setpath - a path expression navigating from the root entity to
the target entity of the delete statementstatic <E extends StructuredType<E>> Delete<E> from(Class<E> entity)
E - the type of root entityentity - the static model representation of the entity setstatic <E extends StructuredType<E>,R extends StructuredType<R>> Delete<R> from(Class<E> entity, Function<E,R> path)
E - the type of root entityR - the type of entity to be returned from path expressionentity - the static model representation of the entity setpath - a path expression navigating from the root entity to the target
entity of the delete statementstatic Delete<StructuredType<?>> from(CdsEntity entity)
entity - the model representation of the entity set obtained by
reflectionCdsModel.findEntity(String),
CdsModel.entities()static Delete<StructuredType<?>> from(CdsEntity entity, UnaryOperator<StructuredType<?>> path)
entity - the model representation of the entity set obtained by
reflectionpath - a path expression navigating from the root entity to the target
entity of the delete statementCdsModel.findEntity(String),
CdsModel.entities()static Delete<StructuredType<?>> copy(CqnDelete delete)
delete - the CqnDelete to be copiedstatic Delete<StructuredType<?>> cqn(String cqnDelete)
cqnDelete - the CQN representation of delete statementDelete<T> where(CqnPredicate predicate)
predicate - a CqnPredicateDelete<T> where(Function<T,CqnPredicate> predicate)
predicate - a Function providing the where conditionDelete<T> matching(Map<String,?> values)
CqnParameter. The map entries are transformed into
comparison predicates and joined via and.values - the element name to value map defining the where conditionCopyright © 2020 SAP. All rights reserved.