Module org.hsqldb

Class JDBCPooledDataSource

  • All Implemented Interfaces:
    java.io.Serializable, javax.naming.Referenceable, javax.sql.CommonDataSource, javax.sql.ConnectionPoolDataSource

    public class JDBCPooledDataSource
    extends JDBCCommonDataSource
    implements javax.sql.ConnectionPoolDataSource, java.io.Serializable, javax.naming.Referenceable, javax.sql.CommonDataSource
    A data source that implements ConnectionPoolDataSource.

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

    Since:
    JDK 1.2, HSQLDB 2.0
    Author:
    Fred Toussi (fredt@users dot sourceforge.net)
    See Also:
    Serialized Form
    • Constructor Detail

      • JDBCPooledDataSource

        public JDBCPooledDataSource()
    • Method Detail

      • getPooledConnection

        public javax.sql.PooledConnection getPooledConnection()
                                                       throws java.sql.SQLException
        Specified by:
        getPooledConnection in interface javax.sql.ConnectionPoolDataSource
        Throws:
        java.sql.SQLException
      • getPooledConnection

        public javax.sql.PooledConnection getPooledConnection​(java.lang.String user,
                                                              java.lang.String password)
                                                       throws java.sql.SQLException
        Specified by:
        getPooledConnection in interface javax.sql.ConnectionPoolDataSource
        Throws:
        java.sql.SQLException
      • getReference

        public javax.naming.Reference getReference()
                                            throws javax.naming.NamingException
        Retrieves the Reference of this object.
        Specified by:
        getReference in interface javax.naming.Referenceable
        Returns:
        The non-null javax.naming.Reference of this object.
        Throws:
        javax.naming.NamingException - If a naming exception was encountered while retrieving the reference.