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
public interface CqnSource extends CqnToken
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default CqnJoin
asJoin()
Casts this CQN source to aCqnJoin
.default CqnSelect
asQuery()
Deprecated.instead useasSelect()
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
isQuery()
Deprecated.instead useisSelect()
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 Detail
-
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
-
isQuery
@Deprecated default boolean isQuery()
Deprecated.instead useisSelect()
Returnstrue
if this is aCqnSelect
statement.- Returns:
true
if this is a select statement, otherwisefalse
-
asRef
default CqnStructuredTypeRef asRef()
Casts this CQN source toCqnSelect
.- Returns:
- this CQN source as a CqnSelect
- Throws:
ClassCastException
- if this CQN source is not a select
-
asSelect
default CqnSelect 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
default CqnJoin asJoin()
Casts this CQN source to aCqnJoin
.- Returns:
- this CQN source as a CqnJoin
- Throws:
ClassCastException
- if this CQN source is not a join
-
asQuery
default CqnSelect asQuery()
Deprecated.instead useasSelect()
Casts this CQN source to aCqnSelect
.- Returns:
- this source as a CqnSelect
- Throws:
ClassCastException
- if this CQN source is not a select
-
-