public interface CqnStatement extends JSONizable
Modifier and Type | Method and Description |
---|---|
default CqnDelete |
asDelete()
Casts this CQN statement to
CqnDelete . |
default CqnInsert |
asInsert()
Casts this CQN statement to
CqnInsert . |
default CqnSelect |
asSelect()
Casts this CQN statement to
CqnSelect . |
default CqnUpdate |
asUpdate()
Casts this CQN statement to
CqnUpdate . |
default CqnUpsert |
asUpsert()
Casts this CQN statement to
CqnUpsert . |
Map<String,Object> |
hints()
Returns the runtime hints of this statement.
|
default boolean |
isDelete()
Returns
true if this is a CqnDelete statement. |
default boolean |
isInsert()
Returns
true if this is a CqnInsert statement. |
default boolean |
isSelect()
Returns
true if this is a CqnSelect statement. |
default boolean |
isUpdate()
Returns
true if this is a CqnUpdate statement. |
default boolean |
isUpsert()
Returns
true if this is a CqnUpsert statement. |
CqnStructuredTypeRef |
ref()
Returns the reference of this statement.
|
toJson
CqnStructuredTypeRef ref()
CqnSelect
statements do not necessarily have a reference, e.g. a
select from subquery. This can be checked via CqnSelect.from()
.CdsException
- if this statement does not have a referenceMap<String,Object> hints()
default boolean isSelect()
true
if this is a CqnSelect
statement.true
if this is a select statement, otherwise false
default boolean isInsert()
true
if this is a CqnInsert
statement.true
if this is an insert statement, otherwise false
default boolean isUpsert()
true
if this is a CqnUpsert
statement.true
if this is an upsert statement, otherwise false
default boolean isUpdate()
true
if this is a CqnUpdate
statement.true
if this is an update statement, otherwise false
default boolean isDelete()
true
if this is a CqnDelete
statement.true
if this is a delete statement, otherwise false
default CqnSelect asSelect()
CqnSelect
.ClassCastException
- if this statement is not a selectdefault CqnInsert asInsert()
CqnInsert
.ClassCastException
- if this statement is not an insertdefault CqnUpsert asUpsert()
CqnUpsert
.ClassCastException
- if this statement is not an upsertdefault CqnUpdate asUpdate()
CqnUpdate
.ClassCastException
- if this statement is not an updatedefault CqnDelete asDelete()
CqnDelete
.ClassCastException
- if this statement is not a deleteCopyright © 2023 SAP. All rights reserved.