8283848586878889
@Override public List<IFeatureType> getAllFeatureTypes() { try { return Generics.changeListType(perfDB.getFeature().getEntities(null)); } catch (SQLException e) { throw new DatabaseAccessException(e); } }
9293949596979899
public List<IProblemDefinition> getAllProblemDefinitions() { try { return Generics.changeListType(perfDB.getSimulationProblem().getEntities( null)); } catch (SQLException e) { throw new DatabaseAccessException(e); } }
103104105106107108109110
try { if (perfDB.getConnection() != null && perfDB.getConnection().isClosed()) { perfDB.openBase(); } } catch (Exception e) { throw new DatabaseAccessException(e); } }
115116117118119120121122123124125126127128129130
try { st = perfDB.getConnection().prepareCall("CALL clearDatabase()"); st.execute(); } catch (ClassNotFoundException | SQLException e) { throw new DatabaseAccessException(e); } finally { if (st != null) { try { st.close(); } catch (SQLException e) { throw new DatabaseAccessException(e); } } } }
132133134135136137138139
@Override public void close() { try { perfDB.closeBase(); } catch (SQLException e) { throw new DatabaseAccessException(e); } }
146147148149150151152153
@Override public IProblemScheme getProblemScheme(URI uri) { try { return perfDB.getBenchmarkModel().lookUp(uri); } catch (Exception e) { throw new DatabaseAccessException(e); } }
156157158159160161162163
public List<IPerformanceType> getAllPerformanceTypes() { try { return Generics.changeListType(perfDB.getPerformanceMeasure() .getEntities(null)); } catch (SQLException e) { throw new DatabaseAccessException(e); } }
179180181182183184185186187
Class<? extends PerformanceMeasurerFactory> measurerClass) { PerformanceType pm = new PerformanceType(typeName, typeDesc, measurerClass); try { pm.create(); } catch (SQLException e) { throw new DatabaseAccessException(e); } return pm; }
191192193194195196197198199
IPerformanceType performanceMeasure, double performance) { Performance pm = new Performance(app, performanceMeasure, performance); try { pm.create(); } catch (SQLException e) { throw new DatabaseAccessException(e); } return pm; }
202203204205206207208209
public List<IProblemScheme> getAllProblemSchemes() { try { return Generics.changeListType(perfDB.getBenchmarkModel().getEntities( null)); } catch (SQLException e) { throw new DatabaseAccessException(e); } }