All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----org.xmlmiddleware.db.StatementPoolDataSource
If you have a JDBC 2.0 DataSource that does not pool connections or statements, use JDBC2DataSource. If you have a JDBC 2.0 DataSource that pools both connections and statements, use it directly.
WARNING: Unlike the other implementations of DataSource in this package, this data source does not retain statement pools when the Connection is closed. This is because closing the Connection returns it to the pool implemented by the underlying DataSource, which is outside of our control.
public StatementPoolDataSource(DataSource ds)
public Connection getConnection() throws SQLExceptiongetConnection
public Connection getConnection(String username, String password) throws SQLExceptiongetLogWriter
public PrintWriter getLogWriter() throws SQLExceptionsetLogWriter
public void setLogWriter(PrintWriter out) throws SQLExceptionsetLoginTimeout
public void setLoginTimeout(int seconds) throws SQLExceptiongetLoginTimeout
public int getLoginTimeout() throws SQLExceptionconnectionClosed
public void connectionClosed(CPConnectionEvent event)connectionErrorOccurred
public void connectionErrorOccurred(CPConnectionEvent event)
All Packages Class Hierarchy This Package Previous Next Index