Android APIs
public interface

ConnectionPoolDataSource

implements CommonDataSource
javax.sql.ConnectionPoolDataSource

Class Overview

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.
[Expand]
Inherited Methods
From interface javax.sql.CommonDataSource

Public Methods

public abstract PooledConnection getPooledConnection ()

Added in API level 1

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.

public abstract PooledConnection getPooledConnection (String theUser, String thePassword)

Added in API level 1

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.