com.evermind.sql
Class DriverManagerConnectionPoolDataSource
java.lang.Object
|
+--com.evermind.sql.DriverManagerConnectionPoolDataSource
- All Implemented Interfaces:
- javax.sql.ConnectionPoolDataSource, java.io.Serializable
- public class DriverManagerConnectionPoolDataSource
- extends java.lang.Object
- implements javax.sql.ConnectionPoolDataSource, java.io.Serializable
A ConnectionPoolDataSource implementation for pre-JDBC 2.0 driver implementations, ie
for vendors that doesnt supply their own ConnectionPoolDataSource implementation.
It will emulate correct behaviour but a vendor-supplied source will do a better job
at keeping connections "clean" and at signalling connection errors for the connections.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DriverManagerConnectionPoolDataSource
public DriverManagerConnectionPoolDataSource(javax.sql.DataSource source)
getPooledConnection
public javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
- Specified by:
getPooledConnection in interface javax.sql.ConnectionPoolDataSource
getPooledConnection
public javax.sql.PooledConnection getPooledConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
- Specified by:
getPooledConnection in interface javax.sql.ConnectionPoolDataSource
setLogWriter
public void setLogWriter(java.io.PrintWriter writer)
throws java.sql.SQLException
- Specified by:
setLogWriter in interface javax.sql.ConnectionPoolDataSource
getLogWriter
public java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
- Specified by:
getLogWriter in interface javax.sql.ConnectionPoolDataSource
setLoginTimeout
public void setLoginTimeout(int timeout)
throws java.sql.SQLException
- Specified by:
setLoginTimeout in interface javax.sql.ConnectionPoolDataSource
getLoginTimeout
public int getLoginTimeout()
throws java.sql.SQLException
- Specified by:
getLoginTimeout in interface javax.sql.ConnectionPoolDataSource
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
setDataSource
public void setDataSource(javax.sql.DataSource source)