Package com.sap.cds.ql.cqn
Interface AnalysisResult
- All Superinterfaces:
Iterable<ResolvedSegment>
,Path
Contains the analysis result for a
CqnStructuredTypeRef
or
CqnStatement
.-
Method Summary
Modifier and TypeMethodDescriptionReturns theCdsEntity
that is the root of theref
.rootKeys()
Returns the element name to value mapping for the key elements of theCdsEntity
that is the root of theref
.Returns theCdsEntity
targeted by theref
.Returns the element name to value mapping for the key elements of theCdsEntity
that is targeted by theref
.Returns the element name to value mapping for the key elements of theCdsEntity
that is targeted by theref
.Returns the element name to value mapping for all elements of theCdsEntity
that is targeted by theref
.Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
rootEntity
CdsEntity rootEntity()Returns theCdsEntity
that is the root of theref
.- Returns:
- the root
CdsEntity
-
rootKeys
Returns the element name to value mapping for the key elements of theCdsEntity
that is the root of theref
. Extracts the key values, i.e. the values of the key elements of the entity that is the root of theref
. If the filter does not uniquely restrict a key element to a particular value, the element's name is mapped tonull
.- Returns:
- a map relating all key element names to key values
-
targetKeys
Returns the element name to value mapping for the key elements of theCdsEntity
that is targeted by theref
. Extracts the key values, i.e. the values of the key elements to the entity targeted by theref
and optionally the statement'swhere
condition. If the combined filter does not uniquely restrict a key element to a particular value, the element's name is mapped tonull
.- Returns:
- a map relating all key element names to key values
-
targetKeyValues
Returns the element name to value mapping for the key elements of theCdsEntity
that is targeted by theref
. Extracts the key values, i.e. the values of the key elements to the entity targeted by theref
and optionally the statement'swhere
condition. If the combined filter does not uniquely restrict a key element to a particular value, the key name is not present in the returned map.- Returns:
- a map relating key element names to key values
-
targetValues
Returns the element name to value mapping for all elements of theCdsEntity
that is targeted by theref
. Extracts the values, i.e. the values of the elements to the entity targeted by theref
and optionally the statement'swhere
condition. If the combined filter does not uniquely restrict an element to a particular value, the element's name is not present in the returned map.- Returns:
- a map relating all element names to values
-
targetEntity
CdsEntity targetEntity()Returns theCdsEntity
targeted by theref
.- Returns:
- the target
CdsEntity
-