org.firebirdsql.pool
Class SimpleDataSource
java.lang.Objectorg.firebirdsql.pool.SimpleDataSource
- DataSource
public class SimpleDataSource
extends java.lang.Object
implements DataSource
This is simple implementation of DataSource interface that uses
ConnectionPoolDataSource as connection provider.
SimpleDataSource
public SimpleDataSource(ConnectionPoolDataSource pool)
Create instance of this class.
pool - instance of ConnectionPoolDataSource that will provide
connections to this data source.
getConnection
public Connection getConnection()
throws SQLException Get JDBC connection.
- instance of
Connection from this data source.
getConnection
public Connection getConnection(String username,
String password)
throws SQLException Get JDBC connection for the specified username and password.
username - username for new connection.password - password corresponding to the username.
getLogWriter
public PrintWriter getLogWriter()
throws SQLException
getLoginTimeout
public int getLoginTimeout()
throws SQLException
setLogWriter
public void setLogWriter(PrintWriter out)
throws SQLException
setLoginTimeout
public void setLoginTimeout(int seconds)
throws SQLException
Copyright B) 2001 David Jencks and other authors. All rights reserved.