public static void dispose ( ) { final JdbcTransaction jdbcTransaction = TX . get ( ) ; if ( null != jdbcTransaction && jdbcTransaction . getConnection ( ) != null ) { jdbcTransaction . dispose ( ) ; } final Connection connection = CONN . get ( ) ; if ( null != connection ) { try { connection . close ( ) ; } catch ( final SQLException e ) { throw new RuntimeException ( "Close connection failed" , e ) ; } finally { CONN . set ( null ) ; } } }
Disposes the resources .