Package org.jamesii.perfdb

Examples of org.jamesii.perfdb.DatabaseAccessException


  @Override
  public List<IFeatureType> getAllFeatureTypes() {
    try {
      return Generics.changeListType(perfDB.getFeature().getEntities(null));
    } catch (SQLException e) {
      throw new DatabaseAccessException(e);
    }
  }
View Full Code Here


  public List<IProblemDefinition> getAllProblemDefinitions() {
    try {
      return Generics.changeListType(perfDB.getSimulationProblem().getEntities(
          null));
    } catch (SQLException e) {
      throw new DatabaseAccessException(e);
    }
  }
View Full Code Here

    try {
      if (perfDB.getConnection() != null && perfDB.getConnection().isClosed()) {
        perfDB.openBase();
      }
    } catch (Exception e) {
      throw new DatabaseAccessException(e);
    }
  }
View Full Code Here

    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);
        }
      }
    }
  }
View Full Code Here

  @Override
  public void close() {
    try {
      perfDB.closeBase();
    } catch (SQLException e) {
      throw new DatabaseAccessException(e);
    }
  }
View Full Code Here

  @Override
  public IProblemScheme getProblemScheme(URI uri) {
    try {
      return perfDB.getBenchmarkModel().lookUp(uri);
    } catch (Exception e) {
      throw new DatabaseAccessException(e);
    }
  }
View Full Code Here

  public List<IPerformanceType> getAllPerformanceTypes() {
    try {
      return Generics.changeListType(perfDB.getPerformanceMeasure()
          .getEntities(null));
    } catch (SQLException e) {
      throw new DatabaseAccessException(e);
    }
  }
View Full Code Here

      Class<? extends PerformanceMeasurerFactory> measurerClass) {
    PerformanceType pm = new PerformanceType(typeName, typeDesc, measurerClass);
    try {
      pm.create();
    } catch (SQLException e) {
      throw new DatabaseAccessException(e);
    }
    return pm;
  }
View Full Code Here

      IPerformanceType performanceMeasure, double performance) {
    Performance pm = new Performance(app, performanceMeasure, performance);
    try {
      pm.create();
    } catch (SQLException e) {
      throw new DatabaseAccessException(e);
    }
    return pm;
  }
View Full Code Here

  public List<IProblemScheme> getAllProblemSchemes() {
    try {
      return Generics.changeListType(perfDB.getBenchmarkModel().getEntities(
          null));
    } catch (SQLException e) {
      throw new DatabaseAccessException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.jamesii.perfdb.DatabaseAccessException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.