Class DataSourceUtils
java.lang.Object
com.sap.cds.services.utils.datasource.DataSourceUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<DataSourceDescriptor>getDataSourceDescriptors(CdsRuntime runtime) static Map<String,DataSource> getDataSources(CdsRuntime runtime) Returns the available datasource objects as a map.static StringgetDataSourceSection(String name, DataSourceUtils.PoolType poolType)
-
Constructor Details
-
DataSourceUtils
public DataSourceUtils()
-
-
Method Details
-
getDataSourceDescriptors
- Parameters:
runtime- theCdsRuntime- Returns:
- the list of available datasource descriptor objects
-
getDataSources
Returns the available datasource objects as a map. The key in the map is the name of the datasource.- Parameters:
runtime- theCdsRuntime- Returns:
- the map of datasources
-
getDataSourceSection
-