Package no.priv.garshol.duke

Examples of no.priv.garshol.duke.JDBCLinkDatabase


public class JDBCLinkDatabaseTest {
  private JDBCLinkDatabase linkdb;
 
  @Before
  public void setup() {
    linkdb = new JDBCLinkDatabase("org.h2.Driver", "jdbc:h2:mem:", "h2",
                                  new Properties());
    linkdb.init();
  }
View Full Code Here


  }
 
  @Test
  public void testBadDatabase() {
    try {
      new JDBCLinkDatabase("org.h2.Driver", "jdbc:h2:mem:", "unknowndb",
                           new Properties());
    } catch (DukeConfigException e) {
      // this is what we expect
    }
  }
View Full Code Here

    if (get(props, "duke.username", null) != null)
      jdbcprops.put("user", get(props, "duke.username"));
    if (get(props, "duke.password", null) != null)
      jdbcprops.put("password", get(props, "duke.password"));

    JDBCLinkDatabase db;
    db = new JDBCLinkDatabase(driverklass, linkjdbcuri, dbtype, jdbcprops);
    if (tblprefix != null)
      db.setTablePrefix(tblprefix);
    db.init();
    return db;
  }
View Full Code Here

      ((JDBCLinkDatabase) linkdb).init();
    listener = new LinkDatabaseMatchListener(config, linkdb);
  }

  protected LinkDatabase makeDatabase() {
    return new JDBCLinkDatabase("org.h2.Driver", "jdbc:h2:mem:", "h2",
                                new Properties());
  }
View Full Code Here

TOP

Related Classes of no.priv.garshol.duke.JDBCLinkDatabase

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.