Class WrappedConnection


  • public class WrappedConnection
    extends java.lang.Object
    The class that represents a connection from a pool.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.sql.Connection getConnection()
      Get the JDBC connection object.
      java.lang.Exception getInstantiationException()
      Get instantiation exception.
      void release()
      Release the object into its pool.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • connection

        protected java.sql.Connection connection
      • instantiationException

        protected java.lang.Exception instantiationException
        Exception, to keep track of where the connection was allocated
    • Constructor Detail

      • WrappedConnection

        public WrappedConnection​(ConnectionPool owner,
                                 java.sql.Connection connection)
        Constructor
      • WrappedConnection

        public WrappedConnection​(ConnectionPool owner,
                                 java.sql.Connection connection,
                                 java.lang.Exception instantiationException)
        Constructor
    • Method Detail

      • getConnection

        public java.sql.Connection getConnection()
        Get the JDBC connection object.
      • release

        public void release()
        Release the object into its pool.
      • getInstantiationException

        public java.lang.Exception getInstantiationException()
        Get instantiation exception.