Skip to content

Most visited

Recently visited

navigation
Added in API level 1

ConnectionPoolDataSource

public interface ConnectionPoolDataSource
implements CommonDataSource

javax.sql.ConnectionPoolDataSource


An interface for the creation of ConnectionPoolDataSource objects. Used internally within the package.

A class which implements the ConnectionPoolDataSource interface is typically registered with a JNDI naming service directory and is retrieved from there by name.

Summary

Public methods

abstract PooledConnection getPooledConnection()

Creates a connection to a database which can then be used as a pooled connection.

abstract PooledConnection getPooledConnection(String theUser, String thePassword)

Creates a connection to a database, using the supplied user name and password, which can then be used as a pooled connection.

Inherited methods

From interface javax.sql.CommonDataSource

Public methods

getPooledConnection

Added in API level 1
PooledConnection getPooledConnection ()

Creates a connection to a database which can then be used as a pooled connection.

Returns
PooledConnection a PooledConnection which represents the connection to the database.
Throws
SQLException if there is a problem accessing the database.

getPooledConnection

Added in API level 1
PooledConnection getPooledConnection (String theUser, 
                String thePassword)

Creates a connection to a database, using the supplied user name and password, which can then be used as a pooled connection.

Parameters
theUser String: the a user name for the database login.
thePassword String: the password associated with the user identified by theUser.
Returns
PooledConnection a PooledConnection object which represents the connection to the database.
Throws
SQLException if there is a problem accessing the database.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.