Class C3p0JdbcConnectionProvider.C3p0JdbcConnectionBean
java.lang.Object
edu.internet2.middleware.subject.provider.C3p0JdbcConnectionProvider.C3p0JdbcConnectionBean
- All Implemented Interfaces:
GcJdbcConnectionBean,JdbcConnectionBean
- Enclosing class:
- C3p0JdbcConnectionProvider
public static class C3p0JdbcConnectionProvider.C3p0JdbcConnectionBean
extends Object
implements JdbcConnectionBean
bean to hold connection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget a connection (dont close this when done, just call "doneWithConnection()"voidcall this when the connection is done.voidcall this when the connection is done but there was an error, will pass an exception.voidcall this when the connection is not needed, in the finally block this might return to pool.
-
Constructor Details
-
C3p0JdbcConnectionBean
construct- Parameters:
theConnection-
-
-
Method Details
-
connection
Description copied from interface:GcJdbcConnectionBeanget a connection (dont close this when done, just call "doneWithConnection()"- Specified by:
connectionin interfaceGcJdbcConnectionBean- Returns:
- the connection
- Throws:
SQLException- if there is a problem- See Also:
-
doneWithConnection
public void doneWithConnection()Description copied from interface:GcJdbcConnectionBeancall this when the connection is done. This will do any cleanup this is a null-safe method.- Specified by:
doneWithConnectionin interfaceGcJdbcConnectionBean- See Also:
-
doneWithConnectionError
Description copied from interface:GcJdbcConnectionBeancall 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:
doneWithConnectionErrorin interfaceGcJdbcConnectionBean- See Also:
-
doneWithConnectionFinally
public void doneWithConnectionFinally()Description copied from interface:GcJdbcConnectionBeancall 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:
doneWithConnectionFinallyin interfaceGcJdbcConnectionBean- See Also:
-