Examples of DBConnectionData


Examples of org.jamesii.core.data.DBConnectionData

   * @param clearDB
   *          the flag to clear the database
   */
  public SimpleExplorationExperiment(String dbURL, String usr, String pwd,
      String driver, boolean clearDB) {
    SimSpExPerspective.setDbConnectionData(new DBConnectionData(dbURL, usr,
        pwd, driver));

    if (clearDB) {
      SimSpExPerspective.getPerformanceDataBase().clear();
    }
View Full Code Here

Examples of org.jamesii.core.data.DBConnectionData

      throws ClassNotFoundException, SQLException {
    if (connection != null) {
      connection.close();
    }

    connectionData = new DBConnectionData(url, user, pwd, driver);
    openBase();
    if (keepAliveTime != null) {
      thread =
          new KeepConnectionAliveThread(keepAliveTime, this, defaultStatement);
      thread.start();
View Full Code Here

Examples of org.jamesii.core.data.DBConnectionData

   *          performance data)
   */
  public static void main(String[] args) {

    new SelectionInformation<>(null, null, null);
    SimSpExPerspective.setDbConnectionData(new DBConnectionData(
        "jdbc:mysql://localhost/exp_sr", "root", "root",
        "com.mysql.jdbc.Driver"));

    PortfolioPerformanceExtractor portExtract =
        new PortfolioPerformanceExtractor("CyclicChain",
View Full Code Here

Examples of org.jamesii.core.data.DBConnectionData

import junit.framework.TestCase;

public class TestDBConnectionData extends TestCase {

  public void testConstructors() {
    DBConnectionData dbd = new DBConnectionData();
    assertNotNull(dbd.getDriver());
    assertNotNull(dbd.getPassword());
    assertNotNull(dbd.getURL());
    assertNotNull(dbd.getUser());

    dbd = new DBConnectionData("a", "b", "c", "d");
    assertNotNull(dbd.getDriver());
    assertNotNull(dbd.getPassword());
    assertNotNull(dbd.getURL());
    assertNotNull(dbd.getUser());

    assertEquals(dbd.getDriver(), "d");
    assertEquals(dbd.getPassword(), "c");
    assertEquals(dbd.getURL(), "a");
    assertEquals(dbd.getUser(), "b");

    dbd.setDriver("4");
    dbd.setPassword("3");
    dbd.setUser("2");
    dbd.setURL("1");

    assertEquals(dbd.getDriver(), "4");
    assertEquals(dbd.getPassword(), "3");
    assertEquals(dbd.getURL(), "1");
    assertEquals(dbd.getUser(), "2");

  }
View Full Code Here

Examples of org.jamesii.core.data.DBConnectionData

            + UUID.randomUUID().toString().replace('-', '_'));
    host = getProperty(HOST_PROPERTY, DEFAULT_DB_HOST);
    user = getProperty(USER_PROPERTY, DEFAULT_USER);
    password = getProperty(PASSWORD_PROPERTY, "");
    connectionData =
        new DBConnectionData("jdbc:mysql://" + host, user, password,
            MYSQL_DRIVER);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.