~ubuntu-branches/ubuntu/maverick/libpgjava/maverick

« back to all changes in this revision

Viewing changes to org/postgresql/ds/PGPooledConnection.java.in

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2008-04-26 22:01:11 UTC
  • mfrom: (3.1.4 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080426220111-yasgxtas5smx2qm3
Tags: 8.2-504-2
* Updated description to mention PostgreSQL 8.3 as supported.
  Closes: #398348
* Removed libpgjava transitional package. Closes: #477557
* Moved debhelper and cdbs from Build-Depends-Indep to Build-Depends.
* Added Homepage, Vcs-Svn and Vcs-Browser fields.
* Added watch file.
* Added myself to Uploaders.
* Removed Stafan and Wolfgang from Uploaders.
* Updated Standards-Version to 3.7.3
* Updated debhelper level to 5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
*
 
3
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
 
4
*
 
5
* IDENTIFICATION
 
6
*   $PostgreSQL: pgjdbc/org/postgresql/ds/PGPooledConnection.java.in,v 1.1 2006/11/29 04:00:15 jurka Exp $
 
7
*
 
8
*-------------------------------------------------------------------------
 
9
*/
 
10
package org.postgresql.ds;
 
11
 
 
12
import java.sql.Connection;
 
13
import java.sql.SQLException;
 
14
import javax.sql.PooledConnection;
 
15
import javax.sql.ConnectionEvent;
 
16
 
 
17
/**
 
18
 * PostgreSQL implementation of the PooledConnection interface.  This shouldn't
 
19
 * be used directly, as the pooling client should just interact with the
 
20
 * ConnectionPool instead.
 
21
 * @see org.postgresql.ds.PGConnectionPoolDataSource
 
22
 *
 
23
 * @author Aaron Mulder (ammulder@chariotsolutions.com)
 
24
 * @author Csaba Nagy (ncsaba@yahoo.com)
 
25
 */
 
26
public class PGPooledConnection
 
27
    extends @POOLED_CONN_CLASS@
 
28
    implements PooledConnection
 
29
{
 
30
 
 
31
    public PGPooledConnection(Connection con, boolean autoCommit, boolean isXA)
 
32
    {
 
33
        super(con, autoCommit, isXA);
 
34
    }
 
35
 
 
36
    public PGPooledConnection(Connection con, boolean autoCommit)
 
37
    {
 
38
        this(con, autoCommit, false);
 
39
    }
 
40
 
 
41
    protected ConnectionEvent createConnectionEvent(SQLException sqle)
 
42
    {
 
43
        return new ConnectionEvent(this, sqle);
 
44
    }
 
45
 
 
46
}