Package com.sap.cds.services.impl.utils
Interface CdsModelUtils.EntitySingleDataVisitor
- Enclosing class:
- CdsModelUtils
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for entity data visitors.
The visitor can be used to traverse a data set deeply with it's entity metadata available
-
Method Summary
-
Method Details
-
visit
void visit(com.sap.cds.reflect.CdsEntity entity, Map<String, Object> data, com.sap.cds.reflect.CdsElement parent, Map<String, Object> parentData) Visits the entity data together with it's metadata from the CDS model- Parameters:
entity
- the entity meta definitiondata
- the entity dataparent
- the element from which the parent entity referred to this entity. For root entities this isnull
parentData
- the data of the parent entity
-