Package com.sap.cds.ql.cqn
Interface CqnSource
- All Superinterfaces:
CqnToken
,JSONizable
- All Known Subinterfaces:
CqnJoin
,CqnSelect
,CqnStructuredTypeRef
,Source<T>
,StructuredType<T>
,StructuredTypeRef
- All Known Implementing Classes:
Select
-
Method Summary
Modifier and TypeMethodDescriptiondefault CqnJoin
asJoin()
Casts this CQN source to aCqnJoin
.default CqnStructuredTypeRef
asRef()
Casts this CQN source toCqnSelect
.default CqnSelect
asSelect()
Casts this CQN source to aCqnSelect
.default boolean
isJoin()
Returnstrue
if this is aCqnJoin
.default boolean
isRef()
Returnstrue
if this is aCqnStructuredTypeRef
.default boolean
isSelect()
Returnstrue
if this is aCqnSelect
statement.Methods inherited from interface com.sap.cds.JSONizable
toJson
-
Method Details
-
isRef
default boolean isRef()Returnstrue
if this is aCqnStructuredTypeRef
.- Returns:
true
if this is a structured type reference, otherwisefalse
-
isSelect
default boolean isSelect()Returnstrue
if this is aCqnSelect
statement.- Returns:
true
if this is a select statement, otherwisefalse
-
isJoin
default boolean isJoin()Returnstrue
if this is aCqnJoin
.- Returns:
true
if this is a join, otherwisefalse
-
asRef
Casts this CQN source toCqnSelect
.- Returns:
- this CQN source as a CqnSelect
- Throws:
ClassCastException
- if this CQN source is not a select
-
asSelect
Casts this CQN source to aCqnSelect
.- Returns:
- this CQN source as a CqnSelect
- Throws:
ClassCastException
- if this CQN source is not a select
-
asJoin
Casts this CQN source to aCqnJoin
.- Returns:
- this CQN source as a CqnJoin
- Throws:
ClassCastException
- if this CQN source is not a join
-