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 Details

    • NonPooledConnectionBean

      public NonPooledConnectionBean(Connection theConnection)
      construct
      Parameters:
      theConnection -
  • Method Details

    • connection

      public Connection connection() throws SQLException
      Description copied from interface: GcJdbcConnectionBean
      get a connection (dont close this when done, just call "doneWithConnection()"
      Specified by:
      connection in interface GcJdbcConnectionBean
      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 interface GcJdbcConnectionBean
      See Also:
      • edu.internet2.middleware.subject.provider.JdbcConnectionBean#doneWithConnection()
    • doneWithConnectionError

      public void doneWithConnectionError(Throwable t)
      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 interface GcJdbcConnectionBean
      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 interface GcJdbcConnectionBean
      See Also:
      • edu.internet2.middleware.subject.provider.JdbcConnectionBean#doneWithConnectionFinally()