类 GroupDataSource
java.lang.Object
com.baomidou.dynamic.datasource.ds.GroupDataSource
组数据源
- 作者:
- TaoYu
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明addDatasource(String ds, DataSource dataSource) add a new datasource to this groupdetermineDataSourcedetermineDsKeyintsize()size of this group
-
构造器详细资料
-
GroupDataSource
-
-
方法详细资料
-
addDatasource
add a new datasource to this group- 参数:
ds- the name of the datasourcedataSource- datasource- 返回:
- the previous value associated with ds, or null if there was no mapping for ds.
-
removeDatasource
- 参数:
ds- the name of the datasource
-
determineDsKey
determineDsKey- 返回:
- the name of the datasource
-
determineDataSource
determineDataSource- 返回:
- the datasource
-
size
public int size()size of this group- 返回:
- the size of this group
-