org.jboss.soa.esb.connection
Class PoolDataSource
java.lang.Object
org.jboss.soa.esb.connection.PoolDataSource
- All Implemented Interfaces:
- javax.sql.DataSource
public class PoolDataSource
- extends java.lang.Object
- implements javax.sql.DataSource
Implementation if Datasource for getting connections from pool.
- Author:
- MohitK
Date: Jul 19, 2006
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PoolDataSource
public PoolDataSource()
getConnectionProperties
public java.util.Properties getConnectionProperties()
setConnectionProperties
public void setConnectionProperties(java.util.Properties _connProperties)
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Specified by:
getConnection in interface javax.sql.DataSource
- Throws:
java.sql.SQLException- See Also:
DataSource.getConnection()
getConnection
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
- Specified by:
getConnection in interface javax.sql.DataSource
- Throws:
java.sql.SQLException- See Also:
DataSource.getConnection(String, String)
getLogWriter
public java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
- Specified by:
getLogWriter in interface javax.sql.DataSource
- Throws:
java.sql.SQLException- See Also:
DataSource.getLogWriter()
setLogWriter
public void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
- Specified by:
setLogWriter in interface javax.sql.DataSource
- Throws:
java.sql.SQLException- See Also:
DataSource.setLogWriter(java.io.PrintWriter)
setLoginTimeout
public void setLoginTimeout(int seconds)
throws java.sql.SQLException
- Specified by:
setLoginTimeout in interface javax.sql.DataSource
- Throws:
java.sql.SQLException- See Also:
DataSource.setLoginTimeout(int)
getLoginTimeout
public int getLoginTimeout()
throws java.sql.SQLException
- Specified by:
getLoginTimeout in interface javax.sql.DataSource
- Throws:
java.sql.SQLException- See Also:
DataSource.getLoginTimeout()