Description
We use the java.sql.Connection to wrap database operations into transactions. As of Java7, Connection is AutoCloseable. I propose to introduce a dynamic proxy to catch the close call and implement the pattern as described in https://db.apache.org/torque/torque-4.0/documentation/orm-reference/connections-transactions.html