|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.utilities.jdbc.DataSourceConnectionManager
public class DataSourceConnectionManager
DataSourceConnectionManager is an implementation of IConnectionManager that manages database connections obtained from a DataSource that is registered with a JNDI naming service.
Implementation Notes:
| Field Summary | |
|---|---|
protected JDBCConfiguration |
jdbcConfiguration
The JDBCConfiguration properties. |
protected java.lang.String |
thisClassName
The full name of this class. |
| Constructor Summary | |
|---|---|
DataSourceConnectionManager(JDBCConfiguration jdbcConfiguration)
Creates a new DriverConnectionManager with the given JDBC Configuration. |
|
| Method Summary | |
|---|---|
java.sql.Connection |
getConnection()
Returns the database connection, according to the properties in jdbcConfiguration. |
static void |
main(java.lang.String[] args)
main() For testing and sandboxing |
void |
releaseConnection(java.sql.Connection dbConn)
Releases the database connection in the way that makes sense for the implementation. |
void |
reset()
Resets the connection manager in the way that makes sense for the implementation. |
void |
stop()
Stops the connection manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String thisClassName
protected JDBCConfiguration jdbcConfiguration
| Constructor Detail |
|---|
public DataSourceConnectionManager(JDBCConfiguration jdbcConfiguration)
throws java.lang.Exception
jdbcConfiguration - The JDBCConfiguration to use for this
DriverConnectionManager.
java.lang.Exception - if constructed with a null jdbcConfiguration.| Method Detail |
|---|
public java.sql.Connection getConnection()
throws java.lang.Exception
getConnection in interface IConnectionManagerjava.lang.Exception - if an error occurs while loading the JDBC driver
or obtaining a connection.public void releaseConnection(java.sql.Connection dbConn)
releaseConnection in interface IConnectionManagerdbConn - A Connection obtained using a previous
call to getConnection().public void reset()
reset in interface IConnectionManagerpublic void stop()
stop in interface IConnectionManagerpublic static void main(java.lang.String[] args)
args - The test data directory.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||