private void handleCleanReuse ( ) throws ResourceException { // moved clearing the cache to before we issue the reuse connection //Now since a reuse was issued, the connection is restored to its orginal properties, so make sure // that you match the cri. try { currentTransactionIsolation = sqlConn . getTransactionIsolation ( ) ; currentHoldability = defaultHoldability ; // get the autoCommit value as it will be reset when reusing the connection currentAutoCommit = sqlConn . getAutoCommit ( ) ; } catch ( SQLException sqlX ) { FFDCFilter . processException ( sqlX , getClass ( ) . getName ( ) + ".handleCleanReuse" , "2787" , this ) ; throw AdapterUtil . translateSQLException ( sqlX , this , true , getClass ( ) ) ; } // start: turn out that tracing will be reset once the connection is reused. // so will need to reset it on our end too and then enable it if needed. loggingEnabled = false ; // reset the tracing flag for this mc. if ( helper . shouldTraceBeEnabled ( this ) ) { helper . enableJdbcLogging ( this ) ; } }
used to do some cleanup after a reuse of connection