diff options
author | PostgreSQL Daemon <webmaster@postgresql.org> | 2004-01-19 20:07:14 +0000 |
---|---|---|
committer | PostgreSQL Daemon <webmaster@postgresql.org> | 2004-01-19 20:07:14 +0000 |
commit | 2a9bf5b33d0b82e9f483f6a5ced9d71e1c009441 (patch) | |
tree | 8c0c38494985b8dbfd2311b5be51fa76a271ba17 /src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3ConnectionPool.java | |
parent | 9bd681a5220186230e0ea0f718a71af7ebe4b560 (diff) | |
download | postgresql-2a9bf5b33d0b82e9f483f6a5ced9d71e1c009441.tar.gz |
JDBC is now on GBorg
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3ConnectionPool.java')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3ConnectionPool.java | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3ConnectionPool.java b/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3ConnectionPool.java deleted file mode 100644 index 1f739d5eb9..0000000000 --- a/src/interfaces/jdbc/org/postgresql/jdbc3/Jdbc3ConnectionPool.java +++ /dev/null @@ -1,61 +0,0 @@ -package org.postgresql.jdbc3; - -import org.postgresql.jdbc2.optional.ConnectionPool; - -import javax.sql.PooledConnection; -import javax.naming.Reference; -import java.sql.SQLException; - -/** - * Jdbc3 implementation of ConnectionPoolDataSource. This is - * typically the interface used by an app server to interact - * with connection pools provided by a JDBC driver. PostgreSQL - * does not support XADataSource, the other common connection - * pooling interface (for connections supporting the two-phase - * commit protocol). - * - * @author Aaron Mulder (ammulder@alumni.princeton.edu) - * @version $Revision: 1.1 $ - */ -public class Jdbc3ConnectionPool extends ConnectionPool -{ - /** - * Gets a description of this DataSource. - */ - public String getDescription() - { - return "Jdbc3ConnectionPool from " + org.postgresql.Driver.getVersion(); - } - - /** - * Gets a connection which may be pooled by the app server or middleware - * implementation of DataSource. - * - * @throws java.sql.SQLException - * Occurs when the physical database connection cannot be established. - */ - public PooledConnection getPooledConnection() throws SQLException - { - return new Jdbc3PooledConnection(getConnection(), isDefaultAutoCommit()); - } - - /** - * Gets a connection which may be pooled by the app server or middleware - * implementation of DataSource. - * - * @throws java.sql.SQLException - * Occurs when the physical database connection cannot be established. - */ - public PooledConnection getPooledConnection(String user, String password) throws SQLException - { - return new Jdbc3PooledConnection(getConnection(user, password), isDefaultAutoCommit()); - } - - /** - * Generates a JDBC object factory reference. - */ - protected Reference createReference() - { - return new Reference(getClass().getName(), Jdbc3ObjectFactory.class.getName(), null); - } -} |