|
||||||||||
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
,
org.quartz.utils.weblogic.WeblogicConnectionProvider
Field Summary | |
---|---|
static java.lang.String |
DB_PROPS_PREFIX
|
Method Summary | |
---|---|
void |
addConnectionProvider(java.lang.String dataSourceName,
ConnectionProvider provider)
|
java.sql.Connection |
getConnection(java.lang.String dsName)
Get a database connection from the DataSource with the given name. |
static DBConnectionManager |
getInstance()
Get the class instance. |
void |
shutdown(java.lang.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 java.lang.String DB_PROPS_PREFIX
Method Detail |
---|
public void addConnectionProvider(java.lang.String dataSourceName, ConnectionProvider provider)
public java.sql.Connection getConnection(java.lang.String dsName) throws java.sql.SQLException
java.sql.SQLException
- if an error occurs, or there is no DataSource with the
given name.public static DBConnectionManager getInstance()
public void shutdown(java.lang.String dsName) throws java.sql.SQLException
java.sql.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 |