218219220221222223224225226227228
} catch (QueryParameterCountInvalidException ex) { if (tx.isInProgress()) { tx.rollback(); } throw new Exception("Incorrect number of bindings given"); } catch (QueryParameterTypeInvalidException ex) {
226227228229230231232233234235236
} catch (QueryParameterTypeInvalidException ex) { if (tx.isInProgress()) { tx.rollback(); } throw new Exception("Incorrect type of object given as binding"); } finally {
483484485486487488489490491492493
assertEquals("Cache was damaged.", "oldStreet", address.getStreet()); tx.commit(); } catch (Throwable e) { if (tx != null) { try { tx.rollback(); } catch (Throwable ex) { ex.printStackTrace(); } } throw e;
529530531532533534535536537538539
addresses = _conn.getCollectionByQuery(q); tx.commit(); } catch (Throwable e) { if (tx != null) { try { tx.rollback(); } catch (Throwable ex) { ex.printStackTrace(); } } throw e;
567568569570571572573574575576577
} tx.commit(); } catch (Throwable e) { if (tx != null) { try { tx.rollback(); } catch (Throwable ex) { ex.printStackTrace(); } } throw e;
594595596597598599600601602603604
949596979899100101102103104
{ try { if (tx != null && tx.isInProgress()) { tx.rollback(); } } catch (Exception ex2) { }
198199200201202203204205206207208
tx.commit(); } catch (Throwable ex) { ex.printStackTrace(); tx.rollback(); } } catch (Throwable ex) { try
207208209210211212213214215216217
283284285286287288289290291292293