Package com.sap.cds.ql.cqn
Interface ResolvedSegment
public interface ResolvedSegment
Contains information on a
CqnReference.Segment
of a CqnStructuredTypeRef
-
Method Summary
Modifier and TypeMethodDescriptionelement()
Returns theCdsElement
corresponding to thisCqnReference.Segment
.default CdsEntity
entity()
Returns theCdsEntity
that is referenced by theCqnReference.Segment
.keys()
Returns the element name to value mapping for the key elements of theCdsEntity
that is targeted by theCqnReference.Segment
.Returns the element name to value mapping for the key elements of theCdsEntity
that is targeted by theCqnReference.Segment
.segment()
Returns the unmodifiedCqnReference.Segment
.type()
Returns theCdsStructuredType
that is referenced by theCqnReference.Segment
.values()
Returns the element name to value mapping for all elements of theCdsEntity
that is targeted by theCqnReference.Segment
.
-
Method Details
-
segment
CqnReference.Segment segment()Returns the unmodifiedCqnReference.Segment
.- Returns:
- a Segment
-
entity
Returns theCdsEntity
that is referenced by theCqnReference.Segment
.- Returns:
- a
CdsEntity
-
type
CdsStructuredType type()Returns theCdsStructuredType
that is referenced by theCqnReference.Segment
.- Returns:
- the type referenced by the segment
-
element
CdsElement element()Returns theCdsElement
corresponding to thisCqnReference.Segment
.- Returns:
- the
CdsElement
, or null
-
keys
Returns the element name to value mapping for the key elements of theCdsEntity
that is targeted by theCqnReference.Segment
. Extracts the key values, i.e. the values of the key elements to the entity targeted by this segment, from this segment's filter condition. If the filter condition 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
-
keyValues
Returns the element name to value mapping for the key elements of theCdsEntity
that is targeted by theCqnReference.Segment
. Extracts the key values, i.e. the values of the key elements to the entity targeted by this segment, from this segment's filter condition. If the filter condition does not uniquely restrict a key element to a particular value, the element's name is not present in the returned map.- Returns:
- a map relating key element names to values
-
values
Returns the element name to value mapping for all elements of theCdsEntity
that is targeted by theCqnReference.Segment
. Extracts the values, i.e. the values of the elements to the entity targeted by this segment, from this segment's filter condition. If the filter condition 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 element names to values
-