类 ConnectionWrapper

  • 所有已实现的接口:
    JdbcConnection, MysqlConnection, TransactionEventHandler, AutoCloseable, Connection, Wrapper

    public class ConnectionWrapper
    extends Object
    implements JdbcConnection
    This class serves as a wrapper for the connection object. It is returned to the application server which may wrap it again and then return it to the application client in response to dataSource.getConnection(). All method invocations are forwarded to underlying connection unless the close method was previously called, in which case a SQLException is thrown. The close method performs a 'logical close' on the connection. All SQL exceptions thrown by the physical connection are intercepted and sent to connectionEvent listeners before being thrown to client.