Package net.officefloor.jdbc.pool
Class ThreadLocalJdbcConnectionPool.ConnectionReferenceImpl
- java.lang.Object
-
- net.officefloor.jdbc.pool.ThreadLocalJdbcConnectionPool.ConnectionReferenceImpl
-
- All Implemented Interfaces:
java.util.EventListener
,javax.sql.ConnectionEventListener
,ThreadLocalJdbcConnectionPool.ConnectionReference
- Enclosing class:
- ThreadLocalJdbcConnectionPool
public static class ThreadLocalJdbcConnectionPool.ConnectionReferenceImpl extends java.lang.Object implements ThreadLocalJdbcConnectionPool.ConnectionReference, javax.sql.ConnectionEventListener
Connection
reference.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connectionClosed(javax.sql.ConnectionEvent event)
void
connectionErrorOccurred(javax.sql.ConnectionEvent event)
java.sql.Connection
getConnection()
Obtains theConnection
.
-
-
-
Method Detail
-
getConnection
public java.sql.Connection getConnection()
Description copied from interface:ThreadLocalJdbcConnectionPool.ConnectionReference
Obtains theConnection
.- Specified by:
getConnection
in interfaceThreadLocalJdbcConnectionPool.ConnectionReference
- Returns:
Connection
.
-
connectionClosed
public void connectionClosed(javax.sql.ConnectionEvent event)
- Specified by:
connectionClosed
in interfacejavax.sql.ConnectionEventListener
-
connectionErrorOccurred
public void connectionErrorOccurred(javax.sql.ConnectionEvent event)
- Specified by:
connectionErrorOccurred
in interfacejavax.sql.ConnectionEventListener
-
-