6566676869707172737475
pstmt.setLong(1, accountId); pstmt.setLong(2, volId); pstmt.executeUpdate(); txn.commit(); } catch (Exception e) { txn.rollback(); s_logger.warn("Error removing usageVolumeVO", e); } finally { txn.close(); } }
8687888990919293949596
pstmt.setLong(3, usage.getId()); } pstmt.executeUpdate(); txn.commit(); } catch (Exception e) { txn.rollback(); s_logger.warn("Error updating UsageVolumeVO", e); } finally { txn.close(); } }
165166167168169170171172173174175
} usageRecords.add(new UsageVolumeVO(vId, zoneId, acctId, dId, doId, tId, size, createdDate, deletedDate)); } } catch (Exception e) { txn.rollback(); s_logger.warn("Error getting usage records", e); } finally { txn.close(); }
6667686970717273747576
pstmt.setLong(3, usage.getUserId()); } pstmt.executeUpdate(); txn.commit(); } catch (Exception e) { txn.rollback(); s_logger.warn("Error updating UsageVPNUserVO", e); } finally { txn.close(); } }
137138139140141142143144145146147
} usageRecords.add(new UsageVPNUserVO(zoneId, acctId, dId, userId, userName, createdDate, deletedDate)); } } catch (Exception e) { txn.rollback(); s_logger.warn("Error getting usage records", e); } finally { txn.close(); }
180181182183184185186187188189190
changedRows = pstmt.executeUpdate(); txn.commit(); } catch(Exception e) { s_logger.warn("Unexpected exception, ", e); txn.rollback(); } return changedRows; }
8889909192939495969798
persist(peer); } txn.commit(); } catch(Exception e) { s_logger.warn("Unexpected exception, ", e); txn.rollback(); } } @Override @DB
642643644645646647648649650651652
if (s_logger.isDebugEnabled()) { s_logger.debug("Unable to transition into Starting state due to " + e.getMessage()); } } finally { if (result == null) { txn.rollback(); } } VMInstanceVO instance = _vmDao.findById(vmId); if (instance == null) {
253254255256257258259260261262263
_capacityDao.update(capacityMemory.getId(), capacityMemory); txn.commit(); return true; } catch (Exception e) { s_logger.debug("Failed to transit vm's state, due to " + e.getMessage()); txn.rollback(); return false; } } @DB
344345346347348349350351352353354
_capacityDao.update(capacityCpu.getId(), capacityCpu); _capacityDao.update(capacityMem.getId(), capacityMem); txn.commit(); } catch (Exception e) { txn.rollback(); return; } } @Override