7980818283848586878889
pstmt.addBatch(); } pstmt.executeBatch(); txn.commit(); } catch (Exception e) { txn.rollback(); s_logger.warn("Error removing launch permissions", e); throw new CloudRuntimeException("Error removing launch permissions", e); } }
111112113114115116117118119120121
pstmt.setString(7, domainSuffix); pstmt.executeUpdate(); txn.commit(); } catch (Exception e) { txn.rollback(); throw new CloudRuntimeException("Unable to save certificate under name " + name + " due to exception", e); } } @Override
8687888990919293949596
persist(peer); } txn.commit(); } catch (Exception e) { s_logger.warn("Unexpected exception, ", e); txn.rollback(); } } @Override @DB
6263646566676869707172
pstmt.setLong(3, usage.getUserId()); } pstmt.executeUpdate(); txn.commit(); } catch (Exception e) { txn.rollback(); s_logger.warn("Error updating UsageVPNUserVO", e); } finally { txn.close(); } }
132133134135136137138139140141142
} 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(); }
6768697071727374757677
pstmt.setString(3, usage.getAddress()); } pstmt.executeUpdate(); txn.commit(); } catch (Exception e) { txn.rollback(); s_logger.warn("Error updating usageIPAddressVO", e); } finally { txn.close(); } }
} usageRecords.add(new UsageIPAddressVO(id, acctId, dId, zId, addr, isSourceNat, isSystem, assignedDate, releasedDate)); } } catch (Exception e) { txn.rollback(); s_logger.warn("Error getting usage records", e); } finally { txn.close(); }
8283848586878889909192
pstmt.setLong(2, instance.getVmInstanceId()); pstmt.setInt(3, instance.getUsageType()); pstmt.executeUpdate(); txn.commit(); } catch (Exception ex) { txn.rollback(); s_logger.error("error deleting usage vm instance with vmId: " + instance.getVmInstanceId() + ", for account with id: " + instance.getAccountId()); } finally { txn.close(); } }
145146147148149150151152153154155
} pstmt.setLong(i++, maxEventId); pstmt.executeUpdate(); txn.commit(); } catch (Exception ex) { txn.rollback(); s_logger.error("error copying event details from cloud db to usage db", ex); throw new CloudRuntimeException(ex.getMessage()); } return findRecentEvents(endDate);
7677787980818283848586
jobForUpdate.setSuccess(success); update(job.getId(), jobForUpdate); txn.commit(); } catch (Exception ex) { txn.rollback(); s_logger.error("error updating job success date", ex); throw new CloudRuntimeException(ex.getMessage()); } finally { txn.close(); }