public void resetClientInformation ( WSRdbManagedConnectionImpl mc ) throws SQLException { if ( mc . mcf . jdbcDriverSpecVersion >= 40 && ( mc . clientInfoExplicitlySet || mc . clientInfoImplicitlySet ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "resetClientInformation" , mc ) ; try { mc . sqlConn . setClientInfo ( mc . mcf . defaultClientInfo ) ; mc . clientInfoExplicitlySet = false ; mc . clientInfoImplicitlySet = false ; } catch ( SQLException ex ) { FFDCFilter . processException ( ex , getClass ( ) . getName ( ) + "resetClientInformation" , "780" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . exit ( this , tc , "resetClientInformation" , ex ) ; throw AdapterUtil . mapSQLException ( ex , mc ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . exit ( this , tc , "resetClientInformation" ) ; } }
This method is used to reset the client information on the backend database connection . Information will be reset only if it has been set .