private void destroyStatement ( Object unwantedStatement ) { try { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "Statement cache at capacity. Discarding a statement." , AdapterUtil . toString ( unwantedStatement ) ) ; ( ( Statement ) unwantedStatement ) . close ( ) ; } catch ( SQLException closeX ) { FFDCFilter . processException ( closeX , getClass ( ) . getName ( ) + ".discardStatement" , "511" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "Error closing statement" , AdapterUtil . toString ( unwantedStatement ) , closeX ) ; } }
Destroy an unwanted statement . This method should close the statement .