Class Hierarchy    Previous  Next  Index

Class COM.cloudscape.core.LocalConnectionPoolDataSource

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

public class LocalConnectionPoolDataSource
extends AbstractDataSource
implements javax.sql.ConnectionPoolDataSource, javax.naming.Referenceable, java.io.Serializable
Copyright © 1998-2000, Informix Software, 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.

Constructor Detail

 o LocalConnectionPoolDataSource
public LocalConnectionPoolDataSource()
          No-arg constructor.

Method Detail

 o getPooledConnection
public javax.sql.PooledConnection getPooledConnection() throws java.sql.SQLException
          Attempt to establish a database connection.
Returns:
a Connection to the database
Throws:
java.sql.SQLException - if a database-access error occurs.
 o getPooledConnection
public javax.sql.PooledConnection getPooledConnection(java.lang.String username,
                                            java.lang.String password) throws java.sql.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:
java.sql.SQLException - if a database-access error occurs.

  Class Hierarchy    Previous  Next  Index