Class JDBCStoreManager.ClientConnection

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.sql.Connection, java.sql.Wrapper, Closeable
    Enclosing class:
    JDBCStoreManager

    public static class JDBCStoreManager.ClientConnection
    extends DelegatingConnection
    Connection returned to client code. Makes sure its wrapped connection ref count is decremented on finalize.
    • Constructor Detail

      • ClientConnection

        public ClientConnection​(java.sql.Connection conn)
    • Method Detail

      • close

        public void close()
                   throws java.sql.SQLException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface java.sql.Connection
        Overrides:
        close in class DelegatingConnection
        Throws:
        java.sql.SQLException
      • finalize

        protected void finalize()
                         throws java.sql.SQLException
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.sql.SQLException