Interface MetaDataAccessor<M>
- Type Parameters:
M- EDMX model type
- All Known Implementing Classes:
MetaDataAccessorImpl,MetaDataAccessorSingleModelImpl
public interface MetaDataAccessor<M>
Provides access to tenant-specific CDS and EDMX models
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidevicts CDS and EDMX models for the specified tenantcom.sap.cds.reflect.CdsModelgetCdsModel(ModelId modelId, int maxAgeSeconds) default com.sap.cds.reflect.CdsModelgetCdsModel(String tenantId) default voidSynchronously CDS and EDMX models for the specified tenant if they have changedvoidTODO sync Rereads CDS and EDMX models for the specified tenant if they have changed
-
Method Details
-
getEdmx
- Parameters:
modelId- model identifiermaxAgeSeconds- maximum acceptable age of resource- Returns:
- EDMX model
-
getI18n
- Parameters:
modelId- model identifiermaxAgeSeconds- maximum acceptable age of resource- Returns:
- model related i18n resources
-
getCdsModel
- Parameters:
tenantId- tenant identifier- Returns:
- CDS model
-
getCdsModel
- Parameters:
modelId- model identifiermaxAgeSeconds- maximum acceptable age of resource- Returns:
- CDS model
-
refresh
Synchronously CDS and EDMX models for the specified tenant if they have changed- Parameters:
tenantId- tenant identifier
-
refresh
TODO sync Rereads CDS and EDMX models for the specified tenant if they have changed- Parameters:
tenantId- tenant identifiermaxAgeSeconds- maximum acceptable age of resource
-
evict
evicts CDS and EDMX models for the specified tenant- Parameters:
tenantId- tenant identifier
-