public static class NonPooledConnectionProvider.NonPooledConnectionBean extends Object implements GcJdbcConnectionBean
| Constructor and Description |
|---|
NonPooledConnectionBean(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 NonPooledConnectionBean(Connection theConnection)
theConnection - public Connection connection() throws SQLException
GcJdbcConnectionBeanconnection in interface GcJdbcConnectionBeanSQLException - if there is a problemedu.internet2.middleware.subject.provider.JdbcConnectionBean#connection()public void doneWithConnection()
GcJdbcConnectionBeandoneWithConnection in interface GcJdbcConnectionBeanedu.internet2.middleware.subject.provider.JdbcConnectionBean#doneWithConnection()public void doneWithConnectionError(Throwable t)
GcJdbcConnectionBeandoneWithConnectionError in interface GcJdbcConnectionBeanedu.internet2.middleware.subject.provider.JdbcConnectionBean#doneWithConnectionError(java.lang.Throwable)public void doneWithConnectionFinally()
GcJdbcConnectionBeandoneWithConnectionFinally in interface GcJdbcConnectionBeanedu.internet2.middleware.subject.provider.JdbcConnectionBean#doneWithConnectionFinally()Copyright © 2021 Internet2. All rights reserved.