Package com.sap.cds.ql.cqn
Class CqnAnalyzer
java.lang.Object
com.sap.cds.ql.cqn.CqnAnalyzer
API to introspect
CqnStructuredTypeRef(s) and
CqnStatement(s)-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceService Provider Interface for theCqnAnalyzer. -
Method Summary
Modifier and TypeMethodDescriptionAnalyzes theSegment(s)of the givenCqnStructuredTypeRef.static CqnAnalyzerCreates an instance ofCqnAnalyzer.static CqnAnalyzerCreates an instance ofCqnAnalyzer.static booleanisCountQuery(CqnStatement cqn) Returns true if the given CQN statement is a query with a single count item on the select list.resolveRefItems(CqnSelect query)
-
Method Details
-
isCountQuery
Returns true if the given CQN statement is a query with a single count item on the select list.- Parameters:
cqn- the CQN statement- Returns:
- true if the given statement is a count query
-
create
Creates an instance ofCqnAnalyzer.- Parameters:
model- theCdsModel- Returns:
- the
CqnAnalyzerinstance
-
create
Creates an instance ofCqnAnalyzer.- Parameters:
modelSupplier- theCdsModelsupplier- Returns:
- the
CqnAnalyzerinstance
-
analyze
Analyzes theSegment(s)of the givenCqnStructuredTypeRef.- Parameters:
ref- theCqnStructuredTypeRefto be analyzed- Returns:
- the
AnalysisResultwith information on the segments of theCqnStructuredTypeRef
-
analyze
- Parameters:
select- theCqnSelectstatement to be analyzed- Returns:
- the
AnalysisResultwith information on therefSegment(s)andwherecondition of the select
-
analyze
- Parameters:
update- theCqnUpdatestatement to be analyzed- Returns:
- the
AnalysisResultwith information on therefSegment(s)andwherecondition of the update
-
analyze
- Parameters:
delete- theCqnDeletestatement to be analyzed- Returns:
- the
AnalysisResultwith information on therefSegment(s)andwherecondition of the delete
-
resolveRefItems
-