Class Hierarchy Previous Next Index
java.lang.Object | +----COM.cloudscape.core.AbstractDataSource | +----COM.cloudscape.core.BasicDataSource
A BasicDataSource is an implementation of the javax.sql.DataSource interface. A BasicDataSource object can be obtained via a DataSourceFactory.
A DataSource is a factory for Connection objects. An object that implements the DataSource interface will typically be registered with a JNDI service provider.
See AbstractDataSource for DataSource properties.
Attempt to establish a database connection.
Attempt to establish a database connection.
public BasicDataSource()
public java.sql.Connection getConnection() throws java.sql.SQLException
Attempt to establish a database connection.
public java.sql.Connection getConnection(java.lang.String username, java.lang.String password) throws java.sql.SQLException
Attempt to establish a database connection.
user
- the database user on whose behalf the Connection is
being made
password
- the user's password
Class Hierarchy Previous Next Index