|
Protomatter Classes v1.1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.protomatter.jdbc.pool.JdbcConnectionPoolDataSource
An implementation of the javax.sql.DataSource and javax.sql.ConnectionPoolDataSource interfaces.
DataSource
,
ConnectionPoolDataSource
,
JdbcConnectionPool
,
JdbcConnectionPoolDriver
,
JdbcConnectionPoolConnection
Constructor Summary | |
JdbcConnectionPoolDataSource(java.lang.String poolName)
Create a new DataSource attached to the given JDBC connection pool. |
Method Summary | |
java.sql.Connection |
getConnection()
Get a connection from this DataSource. |
java.sql.Connection |
getConnection(java.lang.String user,
java.lang.String password)
Get a connection from this DataSource. |
int |
getLoginTimeout()
Get the login timeout. |
java.io.PrintWriter |
getLogWriter()
Get the log writer. |
javax.sql.PooledConnection |
getPooledConnection()
Get a PooledConnection from this ConnectionPoolDataSource. |
javax.sql.PooledConnection |
getPooledConnection(java.lang.String user,
java.lang.String password)
Get a PooledConnection from this ConnectionPoolDataSource. |
void |
setLoginTimeout(int loginTimeout)
Set the login timeout (in seconds). |
void |
setLogWriter(java.io.PrintWriter logWriter)
Set the log writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JdbcConnectionPoolDataSource(java.lang.String poolName) throws java.sql.SQLException
JdbcConnectionPool
Method Detail |
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
DataSource
public java.sql.Connection getConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
DataSource
public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
getLogWriter
in interface javax.sql.DataSource
DataSource
public void setLogWriter(java.io.PrintWriter logWriter) throws java.sql.SQLException
setLogWriter
in interface javax.sql.DataSource
DataSource
public int getLoginTimeout() throws java.sql.SQLException
getLoginTimeout
in interface javax.sql.DataSource
DataSource
public void setLoginTimeout(int loginTimeout) throws java.sql.SQLException
setLoginTimeout
in interface javax.sql.DataSource
DataSource
public javax.sql.PooledConnection getPooledConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
ConnectionPoolDataSource
public javax.sql.PooledConnection getPooledConnection() throws java.sql.SQLException
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
ConnectionPoolDataSource
|
Protomatter Classes v1.1.6 Copyright 1998-2001 Nate Sammons |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Classes v1.1.6 | http://protomatter.sourceforge.net/1.1.6 |