Package org.jamesii.perfdb

Examples of org.jamesii.perfdb.DatabaseAccessException


          new String[] {
              Databases.toString(selectionTree.getHash()),
              Databases.toString(SerialisationUtils
                  .serializeToB64String(selectionTree)) };
    } catch (Exception ex) {
      throw new DatabaseAccessException(ex);
    }

    return values;
  }
View Full Code Here


      return new PerformanceType(resultSet.getString(COLUMN_INDEX_NAME),
          resultSet.getString(COLUMN_INDEX_DESC),
          (Class<? extends PerformanceMeasurerFactory>) Class.forName(resultSet
              .getString(COLUMN_INDEX_PERF_MEASURE_FAC)));
    } catch (SQLException | ClassNotFoundException e) {
      throw new DatabaseAccessException(e);
    }
  }
View Full Code Here

          "view.sql", DatabaseEntityType.VIEW);
      Databases.createEntities(getConnection(), "org/jamesii/perfdb/jdbc/sql",
          "sp.sql", DatabaseEntityType.STORED_PROCEDURE);

    } catch (SQLException | IOException | ClassNotFoundException e) {
      throw new DatabaseAccessException(e);
    }
    return true;
  }
View Full Code Here

    Connection connection = null;
    try {
      connection = getConnection();
    } catch (ClassNotFoundException e) {
      throw new DatabaseAccessException(e);
    } finally {
      if (connection != null) {
        connection.close();
      }
    }
View Full Code Here

    try {
      return new Performance(null, new PerformanceType(
          resultSet.getLong(COLUMN_INDEX_PERF_TYPE_ID)),
          resultSet.getDouble(COLUMN_INDEX_PERFORMANCE));
    } catch (Exception e) {
      throw new DatabaseAccessException(e);
    }
  }
View Full Code Here

          "Passed arrays need to have the same length");
    }
    for (int i = 0; i < objects.length; i++) {
      if (objects[i] != null
          && !types[i].isAssignableFrom(objects[i].getClass())) {
        throw new DatabaseAccessException(HIBERNATE_ENTITY_ERROR
            + "Not the object of type " + objects[i].getClass());
      }
    }
  }
View Full Code Here

    try {
      return new BenchmarkModel(new URI(rs.getString(COLUMN_INDEX_URI)),
          rs.getString(COLUMN_INDEX_NAME), rs.getString(COLUMN_INDEX_TYPE),
          rs.getString(COLUMN_INDEX_DESC));
    } catch (Exception e) {
      throw new DatabaseAccessException(e);
    }
  }
View Full Code Here

  public void init(DBConnectionData dbConn) {
    try {
      perfDB = new PerformanceDatabase(dbConn);
    } catch (SQLException | ClassNotFoundException e) {
      throw new DatabaseAccessException(e);
    }
    perfDB.createBase(null);
  }
View Full Code Here

  public IFeatureType getFeatureForFactory(
      Class<? extends FeatureExtractorFactory> factoryClass) {
    try {
      return perfDB.getFeature().lookUp(factoryClass);
    } catch (SQLException e) {
      throw new DatabaseAccessException(e);
    }
  }
View Full Code Here

      Class<? extends FeatureExtractorFactory> extractor) {
    FeatureType feat = new FeatureType(name, desc, extractor);
    try {
      feat.create();
    } catch (SQLException e) {
      throw new DatabaseAccessException(e);
    }
    return feat;
  }
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.