139140141142143144145146147148149
dbCleanHelper.clean(); } } catch (SQLException e) { throw new CleanException(e); } finally { if (st != null) {
168169170171172173174175
{ connection.commit(); } catch (SQLException e) { throw new CleanException(e); } }
183184185186187188189190
{ connection.rollback(); } catch (SQLException e) { throw new CleanException(e); } }
198199200201202203204205
{ connection.close(); } catch (SQLException e) { throw new CleanException(e); } }
207208209210211212213214215216217
/** * {@inheritDoc} */ public void clean() throws CleanException { CleanException cleanExc = null; try { prepare(); commit();
93949596979899100
} catch (SQLException rollbackException) { LOG.error("Can not rollback changes after exception " + e.getMessage(), rollbackException); } throw new CleanException(e.getMessage(), e); } }
129712981299130013011302130313041305130613071308
return dbCleaner; } catch (NamingException e) { throw new CleanException(e); } catch (SQLException e) { throw new CleanException(e); } }
888889890891892893894895896897898899
return new DBCleaner(jdbcConn, cleanScripts); } catch (SQLException e) { throw new CleanException(e); } catch (NamingException e) { throw new CleanException(e); } }