public class MetaDataAccessorSingleModelImpl<M> extends Object implements MetaDataAccessor<M>
| Constructor and Description |
|---|
MetaDataAccessorSingleModelImpl(String cdsModelPath,
String edmxFolder,
BiFunction<String,String,M> edmxstrAndServiceToEdmxModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
evict(String tenantId) |
CdsModel |
getCdsModel(String tenantId)
Returns a Cds model
|
M |
getEdmx(String tenantId,
String serviceName,
String language) |
void |
refresh(String tenantId) |
public MetaDataAccessorSingleModelImpl(String cdsModelPath, String edmxFolder, BiFunction<String,String,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(String tenantId, String serviceName, String language) throws CdsException
getEdmx in interface MetaDataAccessor<M>tenantId - The tenant identifier, not considered by the code as model is the same for all tenantsserviceName - Service namelanguage - Language, can be nullCdsExceptionpublic CdsModel getCdsModel(String tenantId) throws CdsException
getCdsModel in interface MetaDataAccessor<M>tenantId - tenant id, mustn't be nullCdsModel for the specified tenantCdsExceptionpublic void refresh(String tenantId)
refresh in interface MetaDataAccessor<M>public void evict(String tenantId)
evict in interface MetaDataAccessor<M>Copyright © 2020 SAP. All rights reserved.