|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.quartz.utils.DBConnectionManager
public class DBConnectionManager
Manages a collection of ConnectionProviders, and provides transparent access to their connections.
ConnectionProvider
,
PoolingConnectionProvider
,
JNDIConnectionProvider
,
WeblogicConnectionProvider
Field Summary | |
---|---|
static String |
DB_PROPS_PREFIX
|
Method Summary | |
---|---|
void |
addConnectionProvider(String dataSourceName,
ConnectionProvider provider)
|
Connection |
getConnection(String dsName)
Get a database connection from the DataSource with the given name. |
static DBConnectionManager |
getInstance()
Get the class instance. |
void |
shutdown(String dsName)
Shuts down database connections from the DataSource with the given name, if applicable for the underlying provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DB_PROPS_PREFIX
Method Detail |
---|
public void addConnectionProvider(String dataSourceName, ConnectionProvider provider)
public Connection getConnection(String dsName) throws SQLException
SQLException
- if an error occurs, or there is no DataSource with the
given name.public static DBConnectionManager getInstance()
public void shutdown(String dsName) throws SQLException
SQLException
- if an error occurs, or there is no DataSource with the
given name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |