com.nonesole.persistence.connectionpool
Class DriverPooledConnection

java.lang.Object
  extended by com.nonesole.persistence.connectionpool.DriverPooledConnection
All Implemented Interfaces:
javax.sql.PooledConnection

public class DriverPooledConnection
extends java.lang.Object
implements javax.sql.PooledConnection

Pooled connection class.

Version:
1.0 - build in 2009-07-05
Author:
JACK LEE

Field Summary
static int CONNECTION_CLOSED
          Close normally
static int CONNECTION_ERROR_OCCURRED
          Close by error
 
Method Summary
 void addConnectionEventListener(javax.sql.ConnectionEventListener listener)
           
 void close()
           
 java.sql.Connection getConnection()
           
 void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECTION_CLOSED

public static final int CONNECTION_CLOSED
Close normally

See Also:
Constant Field Values

CONNECTION_ERROR_OCCURRED

public static final int CONNECTION_ERROR_OCCURRED
Close by error

See Also:
Constant Field Values
Method Detail

close

public void close()
           throws java.sql.SQLException
Specified by:
close in interface javax.sql.PooledConnection
Throws:
java.sql.SQLException

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Specified by:
getConnection in interface javax.sql.PooledConnection
Throws:
java.sql.SQLException

addConnectionEventListener

public void addConnectionEventListener(javax.sql.ConnectionEventListener listener)
Specified by:
addConnectionEventListener in interface javax.sql.PooledConnection

removeConnectionEventListener

public void removeConnectionEventListener(javax.sql.ConnectionEventListener listener)
Specified by:
removeConnectionEventListener in interface javax.sql.PooledConnection