Class Hierarchy        Index

Class COM.cloudscape.core.LocalConnectionPoolDataSource

java.lang.Object
   |
   +----COM.cloudscape.core.AbstractDataSource
           |
           +----COM.cloudscape.core.LocalConnectionPoolDataSource

public class LocalConnectionPoolDataSource
extends AbstractDataSource
implements ConnectionPoolDataSource, Referenceable, Serializable
Copyright © 1998-1999, Cloudscape, Inc. All rights reserved.

A LocalConnectionPoolDataSource is an implementation of the javax.sql.ConnectionPoolDataSource interface. A LocalConnectionPoolDataSource object can be obtained via a DataSourceFactory.

A ConnectionPoolDataSource is a factory for PooledConnection objects. An object that implements this interface will typically be registered with a JNDI service.

LocalConnectionPoolDataSource is serializable and referenceable.

See AbstractDataSource for DataSource properties.

See Also:
DataSourceFactory

Constructor Index

 o LocalConnectionPoolDataSource()
No-arg constructor.

Method Index

 o getPooledConnection()
Attempt to establish a database connection.
 o getPooledConnection(String, String)
Attempt to establish a database connection.

Constructors

 o LocalConnectionPoolDataSource
 public LocalConnectionPoolDataSource()
No-arg constructor.

Methods

 o getPooledConnection
 public PooledConnection getPooledConnection() throws SQLException
Attempt to establish a database connection.

Returns:
a Connection to the database
Throws: SQLException
if a database-access error occurs.
 o getPooledConnection
 public PooledConnection getPooledConnection(String username,
                                             String password) throws SQLException
Attempt to establish a database connection.

Parameters:
user - the database user on whose behalf the Connection is being made
Returns:
a Connection to the database
Throws: SQLException
if a database-access error occurs.

  Class Hierarchy        Index