Package com.sap.cds.ql.cqn
Interface CqnSource
- All Superinterfaces:
CqnToken,JSONizable
- All Known Subinterfaces:
CqnHierarchy,CqnHierarchyGenerator,CqnHierarchySubset,CqnJoin,CqnSelect,CqnStructuredTypeRef,CqnTableFunction,Hierarchy,HierarchySubset,Source<T>,StructuredType<T>,StructuredTypeRef,TableFunction
- All Known Implementing Classes:
Select
-
Method Summary
Modifier and TypeMethodDescriptiondefault CqnJoinasJoin()Casts this CQN source to aCqnJoin.default CqnStructuredTypeRefasRef()Casts this CQN source toCqnSelect.default CqnSelectasSelect()Casts this CQN source to aCqnSelect.default CqnTableFunctionCasts this CQN source to aCqnTableFunction.default booleanisJoin()Returnstrueif this is aCqnJoin.default booleanisRef()Returnstrueif this is aCqnStructuredTypeRef.default booleanisSelect()Returnstrueif this is aCqnSelectstatement.default booleanReturnstrueif this is aCqnTableFunction.Methods inherited from interface com.sap.cds.JSONizable
toJson
-
Method Details
-
isRef
default boolean isRef()Returnstrueif this is aCqnStructuredTypeRef.- Returns:
trueif this is a structured type reference, otherwisefalse
-
isSelect
default boolean isSelect()Returnstrueif this is aCqnSelectstatement.- Returns:
trueif this is a select statement, otherwisefalse
-
isJoin
default boolean isJoin()Returnstrueif this is aCqnJoin.- Returns:
trueif this is a join, otherwisefalse
-
isTableFunction
@Beta default boolean isTableFunction()Returnstrueif this is aCqnTableFunction.- Returns:
trueif this is a table function, 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
-
asTableFunction
Casts this CQN source to aCqnTableFunction.- Returns:
- this CQN source as a CqnTableFunction
- Throws:
ClassCastException- if this CQN source is no table function
-