public final class CqnAnalyzer extends Object
CqnStructuredTypeRef(s)
and
CqnStatement(s)
Modifier and Type | Class and Description |
---|---|
static interface |
CqnAnalyzer.CqnAnalyzerSPI
Service Provider Interface for the
CqnAnalyzer . |
Modifier and Type | Method and Description |
---|---|
AnalysisResult |
analyze(CqnDelete delete)
|
AnalysisResult |
analyze(CqnSelect select)
|
AnalysisResult |
analyze(CqnStructuredTypeRef ref)
Analyzes the
Segment(s) of the given
CqnStructuredTypeRef . |
AnalysisResult |
analyze(CqnUpdate update)
|
static CqnAnalyzer |
create(CdsModel model)
Creates an instance of
CqnAnalyzer . |
static CqnAnalyzer |
create(Supplier<CdsModel> modelSupplier)
Creates an instance of
CqnAnalyzer . |
static boolean |
isCountQuery(CqnStatement cqn)
Returns true if the given CQN statement is a query with a single count item
on the select list.
|
Iterable<ResolvedRefItem> |
resolveRefItems(CqnSelect query) |
public static boolean isCountQuery(CqnStatement cqn)
cqn
- the CQN statementpublic static CqnAnalyzer create(CdsModel model)
CqnAnalyzer
.model
- the CdsModel
CqnAnalyzer
instancepublic static CqnAnalyzer create(Supplier<CdsModel> modelSupplier)
CqnAnalyzer
.modelSupplier
- the CdsModel
supplierCqnAnalyzer
instancepublic AnalysisResult analyze(CqnStructuredTypeRef ref)
Segment(s)
of the given
CqnStructuredTypeRef
.ref
- the CqnStructuredTypeRef
to be analyzedAnalysisResult
with information on the segments of the
CqnStructuredTypeRef
public AnalysisResult analyze(CqnSelect select)
select
- the CqnSelect
statement to be analyzedAnalysisResult
with information on the ref
Segment(s)
and where
condition of the selectpublic AnalysisResult analyze(CqnUpdate update)
update
- the CqnUpdate
statement to be analyzedAnalysisResult
with information on the ref
Segment(s)
and where
condition of the updatepublic AnalysisResult analyze(CqnDelete delete)
delete
- the CqnDelete
statement to be analyzedAnalysisResult
with information on the ref
Segment(s)
and where
condition of the delete@Beta public Iterable<ResolvedRefItem> resolveRefItems(CqnSelect query)
Copyright © 2022 SAP. All rights reserved.