1
/*-------------------------------------------------------------------------
3
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
6
* $PostgreSQL: pgjdbc/org/postgresql/ds/PGPooledConnection.java.in,v 1.1 2006/11/29 04:00:15 jurka Exp $
8
*-------------------------------------------------------------------------
10
package org.postgresql.ds;
12
import java.sql.Connection;
13
import java.sql.SQLException;
14
import javax.sql.PooledConnection;
15
import javax.sql.ConnectionEvent;
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
23
* @author Aaron Mulder (ammulder@chariotsolutions.com)
24
* @author Csaba Nagy (ncsaba@yahoo.com)
26
public class PGPooledConnection
27
extends @POOLED_CONN_CLASS@
28
implements PooledConnection
31
public PGPooledConnection(Connection con, boolean autoCommit, boolean isXA)
33
super(con, autoCommit, isXA);
36
public PGPooledConnection(Connection con, boolean autoCommit)
38
this(con, autoCommit, false);
41
protected ConnectionEvent createConnectionEvent(SQLException sqle)
43
return new ConnectionEvent(this, sqle);