Class NonPooledConnectionProvider.NonPooledConnectionBean
java.lang.Object
edu.internet2.middleware.grouperClient.config.NonPooledConnectionProvider.NonPooledConnectionBean
- All Implemented Interfaces:
GcJdbcConnectionBean
- Enclosing class:
- NonPooledConnectionProvider
public static class NonPooledConnectionProvider.NonPooledConnectionBean
extends Object
implements GcJdbcConnectionBean
bean to hold connection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget a connection (dont close this when done, just call "doneWithConnection()"void
call this when the connection is done.void
call this when the connection is done but there was an error, will pass an exception.void
call this when the connection is not needed, in the finally block this might return to pool.
-
Constructor Details
-
NonPooledConnectionBean
construct- Parameters:
theConnection
-
-
-
Method Details
-
connection
Description copied from interface:GcJdbcConnectionBean
get a connection (dont close this when done, just call "doneWithConnection()"- Specified by:
connection
in interfaceGcJdbcConnectionBean
- Returns:
- the connection
- Throws:
SQLException
- if there is a problem- See Also:
-
edu.internet2.middleware.subject.provider.JdbcConnectionBean#connection()
-
doneWithConnection
public void doneWithConnection()Description copied from interface:GcJdbcConnectionBean
call this when the connection is done. This will do any cleanup this is a null-safe method.- Specified by:
doneWithConnection
in interfaceGcJdbcConnectionBean
- See Also:
-
edu.internet2.middleware.subject.provider.JdbcConnectionBean#doneWithConnection()
-
doneWithConnectionError
Description copied from interface:GcJdbcConnectionBean
call this when the connection is done but there was an error, will pass an exception. This should do whatever and rethrow the exception as runtime- Specified by:
doneWithConnectionError
in interfaceGcJdbcConnectionBean
- See Also:
-
edu.internet2.middleware.subject.provider.JdbcConnectionBean#doneWithConnectionError(java.lang.Throwable)
-
doneWithConnectionFinally
public void doneWithConnectionFinally()Description copied from interface:GcJdbcConnectionBean
call this when the connection is not needed, in the finally block this might return to pool. In general, this shouldnt throw exceptions since it is done in a finally block, it should only log them- Specified by:
doneWithConnectionFinally
in interfaceGcJdbcConnectionBean
- See Also:
-
edu.internet2.middleware.subject.provider.JdbcConnectionBean#doneWithConnectionFinally()
-