public PreparedStatement wrapPreparedStatement ( PreparedStatement preparedStatement , String sql ) { Query query = new Query ( sql ) ; Timer . Context lifeTimerContext = getMetricHelper ( ) . startPreparedStatementLifeTimer ( query ) ; return newProxy ( new PreparedStatementProxyHandler ( preparedStatement , this , query , lifeTimerContext ) ) ; }
Wrap a prepared statement to monitor it .