com.caucho.sql
Class QPooledConnection

com.caucho.sql.QPooledConnection
Direct Known Subclasses:
QXAPooledConnection

public class QPooledConnection

Represents a single pooled connection. For the most part, it just passes the requests to the underlying JDBC connection.

Closing the connection will return the real connection to the pool and close any statements.


Field Summary
protected  java.sql.Connection conn
           
protected static WriteStream dbg
           
protected static L10N L
           
protected  DBPool pool
           
 
Method Summary
 void addConnectionEventListener(com.caucho.sql.ConnectionEventListener listener)
           
 void close()
           
 java.sql.Connection getConnection()
           
 void removeConnectionEventListener(com.caucho.sql.ConnectionEventListener listener)
           
 

Field Detail

dbg

protected static WriteStream dbg

L

protected static L10N L

pool

protected DBPool pool

conn

protected java.sql.Connection conn
Method Detail

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException

addConnectionEventListener

public void addConnectionEventListener(com.caucho.sql.ConnectionEventListener listener)

removeConnectionEventListener

public void removeConnectionEventListener(com.caucho.sql.ConnectionEventListener listener)

close

public void close()
           throws java.sql.SQLException