|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jetrix.DataSourceManager
public final class DataSourceManager
Manage the connection pools to the databases.
| Field Summary | |
|---|---|
static String |
DEFAULT_DATASOURCE
Key of the default datasource. |
static int |
DEFAULT_MAX_ACTIVE
Default number of maximum active connections |
static int |
DEFAULT_MIN_IDLE
Default number of the minimum idle connections |
| Method Summary | |
|---|---|
DataSource |
getDataSource()
Returns the default datasource. |
DataSource |
getDataSource(String environnement)
|
static DataSourceManager |
getInstance()
|
void |
setDataSource(DataSourceConfig config)
Configure the default datasource. |
void |
setDataSource(DataSourceConfig config,
String environment)
Configure a datasource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_DATASOURCE
public static final int DEFAULT_MIN_IDLE
public static final int DEFAULT_MAX_ACTIVE
| Method Detail |
|---|
public static DataSourceManager getInstance()
public DataSource getDataSource()
public DataSource getDataSource(String environnement)
public void setDataSource(DataSourceConfig config)
public void setDataSource(DataSourceConfig config,
String environment)
config - the configuration of the datasourceenvironment - the environment of the datasource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||