Top Description Fields Constructors Methods
org.hsqldb.jdbc.pool

public Class JDBCPooledDataSource

extends JDBCCommonDataSource
implements ConnectionPoolDataSource, Serializable, Referenceable, CommonDataSource
Class Inheritance
All Implemented Interfaces
javax.sql.CommonDataSource, javax.naming.Referenceable, java.io.Serializable, javax.sql.ConnectionPoolDataSource
Imports
java.io.Serializable, java.sql.SQLException, java.util.Properties, javax.naming.NamingException, .Reference, .Referenceable, .StringRefAddr, javax.sql.CommonDataSource, .ConnectionPoolDataSource, .PooledConnection, org.hsqldb.jdbc.JDBCCommonDataSource, .JDBCConnection, .JDBCDriver

A data source that implements javax.sql.ConnectionPoolDataSource.

For use by connection pooling software, not by end users.

Author
Fred Toussi (fredt@users dot sourceforge.net)
Since
JDK 1.2, HSQLDB 2.0
Version
2.2.9

Field Summary

Inherited from org.hsqldb.jdbc.JDBCCommonDataSource:
connectionPropsdataSourceNamedescriptionloginTimeoutlogWriternetworkProtocolpasswordserverNameurluser

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PooledConnection
getPooledConnection()

Implements javax.sql.ConnectionPoolDataSource.getPooledConnection.

Attempts to establish a physical database connection that can be used as a pooled connection.

public PooledConnection
getPooledConnection(String user, String password)

Implements javax.sql.ConnectionPoolDataSource.getPooledConnection.

Attempts to establish a physical database connection that can be used as a pooled connection.

public Reference

Returns:

The non-null javax.naming.Reference of this object.
getReference
()

Implements javax.naming.Referenceable.getReference.

Retrieves the Reference of this object.

Inherited from org.hsqldb.jdbc.JDBCCommonDataSource:
getDatabasegetDatabaseNamegetDataSourceNamegetDescriptiongetLoginTimeoutgetLogWritergetNetworkProtocolgetParentLoggergetServerNamegetUrlgetURLgetUsersetDatabasesetDatabaseNamesetLoginTimeoutsetLogWritersetPasswordsetPropertiessetUrlsetURLsetUser

Constructor Detail

JDBCPooledDataSourceback to summary
public JDBCPooledDataSource()

Method Detail

getPooledConnectionback to summary
public PooledConnection getPooledConnection() throws SQLException

Implements javax.sql.ConnectionPoolDataSource.getPooledConnection.

Doc from javax.sql.ConnectionPoolDataSource.getPooledConnection.

Attempts to establish a physical database connection that can be used as a pooled connection.

Exceptions
SQLException:
if a database access error occurs
getPooledConnectionback to summary
public PooledConnection getPooledConnection(String user, String password) throws SQLException

Implements javax.sql.ConnectionPoolDataSource.getPooledConnection.

Doc from javax.sql.ConnectionPoolDataSource.getPooledConnection.

Attempts to establish a physical database connection that can be used as a pooled connection.

Exceptions
SQLException:
if a database access error occurs
getReferenceback to summary
public Reference getReference() throws NamingException

Implements javax.naming.Referenceable.getReference.

Retrieves the Reference of this object.

Returns:Reference

The non-null javax.naming.Reference of this object.

Exceptions
NamingException:
If a naming exception was encountered while retrieving the reference.