Package com.sap.cds.reflect.overlay
Interface CdsModelExtender
@Beta
public interface CdsModelExtender
The
CdsModelExtender
allows to extend the underlying
CdsModel
.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
The factory to createCdsModelExtender
instances. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the overlaid model with all its extensions.Extends an entity with the given name.static CdsModelExtender
Creates a newCdsModelExtender
for the given model.
-
Field Details
-
factory
-
-
Method Details
-
extend
Creates a newCdsModelExtender
for the given model.- Parameters:
model
- the model to extend- Returns:
- the model extender
-
entity
Extends an entity with the given name. If the entity does not exist in the model, aCdsDefinitionNotFoundException
exception is thrown.- Parameters:
qualifiedName
- the qualified name of the entity to extend- Returns:
- the entity extension builder
- Throws:
CdsDefinitionNotFoundException
- if the entity does not exist in the model
-
build
CdsModel build()Builds the overlaid model with all its extensions.- Returns:
- the overlaid model
-