public static void closeStatement ( Statement st ) { if ( st != null ) { try { st . close ( ) ; } catch ( Exception e ) { log . warn ( "Exception when closing database statement." , e ) ; } } }
Closes database Statement . No exception will be thrown even if occurred during closing instead the exception will be logged at warning level .