public class MetaDataAccessorSingleModelImpl<M> extends Object implements MetaDataAccessor<M>
| Constructor and Description |
|---|
MetaDataAccessorSingleModelImpl(String cdsModelPath,
String edmxFolder,
MetaDataAccessorImpl.EdmxModelCreator<M> edmxstrAndServiceToEdmxModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
evict(String tenantId) |
CdsModel |
getCdsModel(ModelId modelId,
int maxAgeSeconds) |
M |
getEdmx(ModelId id,
int maxAgeSeconds) |
void |
refresh(String tenantId,
int maxAgeSeconds) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCdsModel, getEdmx, refreshpublic MetaDataAccessorSingleModelImpl(String cdsModelPath, String edmxFolder, MetaDataAccessorImpl.EdmxModelCreator<M> edmxstrAndServiceToEdmxModel) throws IOException
cdsModelPath - Path to the csn-file,including file nameedmxFolder - Path of edmx folder, null and empty are
allowededmxstrAndServiceToEdmxModel - Function that converts edmx model read as
string into generic type MIOExceptionpublic M getEdmx(ModelId id, int maxAgeSeconds) throws CdsException
getEdmx in interface MetaDataAccessor<M>CdsExceptionpublic CdsModel getCdsModel(ModelId modelId, int maxAgeSeconds) throws CdsException
getCdsModel in interface MetaDataAccessor<M>CdsExceptionpublic void refresh(String tenantId, int maxAgeSeconds)
refresh in interface MetaDataAccessor<M>public void evict(String tenantId)
evict in interface MetaDataAccessor<M>Copyright © 2021 SAP. All rights reserved.