9091929394959697
} } catch (Exception e) { log.error(e.toString()); throw new ProviderException(e.getMessage()); } }
122123124125126127128129130131132
return (ReportDataSource) criteria.uniqueResult(); } catch (HibernateException he) { throw new ProviderException(he); } finally { hibernateProvider.closeSession(session); }
169170171172173174175176
hibernateProvider.delete(dataSource); dataSources.remove(dataSource.getId()); } catch (ConstraintException ce) { throw new ProviderException(LocalStrings.ERROR_DATASOURCE_DELETION); } }
196197198199200201202203204205206
conn = dataSource.getConnection(); } } catch (Exception e) { throw new ProviderException(LocalStrings.ERROR_TESTING_CONNECTION + ": " + e.getMessage()); } finally { try
93949596979899100
session.close(); } } catch (HibernateException he) { throw new ProviderException(he); } }
116117118119120121122123
{ hibernateProvider.delete(property); } catch (ConstraintException ce) { throw new ProviderException(ce.getMessage()); } }
8687888990919293
111112113114115116117118
{ hibernateProvider.delete(reportGroup); } catch (ConstraintException ce) { throw new ProviderException(LocalStrings.ERROR_GROUP_DELETION); } }
7475767778798081
126127128129130131132133134135136
} catch (HibernateException he) { hibernateProvider.rollbackTransaction(tx); throw new ProviderException(he.getMessage()); } finally { hibernateProvider.closeSession(session); }