137138139140141142143144145146147
txn.commit(); return domain; } catch(Exception e) { s_logger.error("Unable to create domain due to " + e.getMessage(), e); txn.rollback(); return null; } } @Override
193194195196197198199200201202203
success = super.remove(id); txn.commit(); } catch (SQLException ex) { success = false; s_logger.error("error removing domain: " + id, ex); txn.rollback(); } return success; } @Override
8990919293949596979899
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
8485868788899091929394
pstmt.setLong(1, accountId.longValue()); } pstmt.executeUpdate(); txn.commit(); } catch (Exception ex) { txn.rollback(); s_logger.error("error retrieving usage vm instances for account id: " + accountId); } finally { txn.close(); } }
124125126127128129130131132133134
pstmt.addBatch(); } pstmt.executeBatch(); txn.commit(); } catch (Exception ex) { txn.rollback(); s_logger.error("error saving account to cloud_usage db", ex); throw new CloudRuntimeException(ex.getMessage()); } }
154155156157158159160161162163164
195196197198199200201202203204205
pstmt.addBatch(); } pstmt.executeBatch(); txn.commit(); } catch (Exception ex) { txn.rollback(); s_logger.error("error saving user stats to cloud_usage db", ex); throw new CloudRuntimeException(ex.getMessage()); } }
222223224225226227228229230231232
325326327328329330331332333334335
pstmt.addBatch(); } pstmt.executeBatch(); txn.commit(); } catch (Exception ex) { txn.rollback(); s_logger.error("error saving vm disk stats to cloud_usage db", ex); throw new CloudRuntimeException(ex.getMessage()); } }
371372373374375376377378379380381