public final class SaaSDataSourcePool extends Object
| 构造器和说明 |
|---|
SaaSDataSourcePool() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
add(String dsKey,
DataSource dataSource)
添加数据源
|
static DataSource |
get(Integer dsKey) |
static DataSource |
get(Long dsKey) |
static DataSource |
get(String dsKey)
获取数据源
|
static Map<String,DataSource> |
getAll()
获取所有的数据源
|
static void |
remove(Integer dsKey) |
static void |
remove(Long dsKey) |
static void |
remove(String dsKey)
删除数据源
|
static void |
removeAll()
清空池内所有数据源
|
public static Map<String,DataSource> getAll()
public static DataSource get(String dsKey)
dsKey - 数据源Keypublic static DataSource get(Long dsKey)
public static DataSource get(Integer dsKey)
public static void add(String dsKey, DataSource dataSource)
dsKey - 数据源KeydataSource - 数据源public static void remove(String dsKey)
dsKey - 数据源Keypublic static void remove(Long dsKey)
public static void remove(Integer dsKey)
Copyright © 2018-2022–2022 AIR Software. All rights reserved.