public static class C3p0JdbcConnectionProvider.C3p0JdbcConnectionBean extends Object implements JdbcConnectionBean
| Constructor and Description |
|---|
C3p0JdbcConnectionProvider.C3p0JdbcConnectionBean(Connection theConnection)
construct
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
connection()
get a connection (dont close this when done, just call "doneWithConnection()"
|
void |
doneWithConnection()
call this when the connection is done.
|
void |
doneWithConnectionError(Throwable t)
call this when the connection is done but there was an error, will pass
an exception.
|
void |
doneWithConnectionFinally()
call this when the connection is not needed, in the finally block
this might return to pool.
|
public C3p0JdbcConnectionProvider.C3p0JdbcConnectionBean(Connection theConnection)
theConnection - public Connection connection() throws SQLException
JdbcConnectionBeanconnection in interface JdbcConnectionBeanSQLException - if there is a problemJdbcConnectionBean.connection()public void doneWithConnection()
JdbcConnectionBeandoneWithConnection in interface JdbcConnectionBeanJdbcConnectionBean.doneWithConnection()public void doneWithConnectionError(Throwable t)
JdbcConnectionBeandoneWithConnectionError in interface JdbcConnectionBeanJdbcConnectionBean.doneWithConnectionError(java.lang.Throwable)public void doneWithConnectionFinally()
JdbcConnectionBeandoneWithConnectionFinally in interface JdbcConnectionBeanJdbcConnectionBean.doneWithConnectionFinally()Copyright © 2016 Internet2. All rights reserved.