352353354355356357358359360361362
connectionManager.getConnectionResource(); try { try (Statement stmt = conn.createStatement()) { initDB(stmt); } conn.commit(); // Success! Break out of the loop. return; } catch (SQLException sqle) { handleSQLException(sqle, i); } finally {
13111312131313141315131613171318131913201321
try { try (PreparedStatement ps = conn.prepareStatement( getQuery("clearRepository"))) { ps.setInt(1, getRepositoryId(conn, repository)); ps.execute(); conn.commit(); } } finally { connectionManager.releaseConnection(conn); } }
13731374137513761377137813791380138113821383
addFilemove.setInt(1, changesetId); addFilemove.setInt(2, fileId); addFilemove.executeUpdate(); } conn.commit(); break retry; } catch (SQLException sqle) { handleSQLException(sqle, i); conn.rollback(); } finally {