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
Modifier and TypeClassDescriptionstatic interface
Service Provider Interface for theCqnAnalyzer
. -
Method Summary
Modifier and TypeMethodDescriptionAnalyzes theSegment(s)
of the givenCqnStructuredTypeRef
.static CqnAnalyzer
Creates an instance ofCqnAnalyzer
.static CqnAnalyzer
Creates an instance ofCqnAnalyzer
.static boolean
isCountQuery
(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
CqnAnalyzer
instance
-
create
Creates an instance ofCqnAnalyzer
.- Parameters:
modelSupplier
- theCdsModel
supplier- Returns:
- the
CqnAnalyzer
instance
-
analyze
Analyzes theSegment(s)
of the givenCqnStructuredTypeRef
.- Parameters:
ref
- theCqnStructuredTypeRef
to be analyzed- Returns:
- the
AnalysisResult
with information on the segments of theCqnStructuredTypeRef
-
analyze
- Parameters:
select
- theCqnSelect
statement to be analyzed- Returns:
- the
AnalysisResult
with information on theref
Segment(s)
andwhere
condition of the select
-
analyze
- Parameters:
update
- theCqnUpdate
statement to be analyzed- Returns:
- the
AnalysisResult
with information on theref
Segment(s)
andwhere
condition of the update
-
analyze
- Parameters:
delete
- theCqnDelete
statement to be analyzed- Returns:
- the
AnalysisResult
with information on theref
Segment(s)
andwhere
condition of the delete
-
resolveRefItems
-