Examples of IDBConnection


Examples of com.hp.hpl.jena.db.IDBConnection

        String dbServer = m.group(1);
        String type = m.group(2);
        String modelName = m.group(3);
        String user = System.getProperty( "jena.db.user" );
        String password = System.getProperty( "jena.db.password" );
        IDBConnection con = ModelFactory.createSimpleRDBConnection( dbServer, user, password, type );
        return ModelFactory.createModelRDBMaker( con ).createModel( modelName );
        }
View Full Code Here

Examples of com.hp.hpl.jena.db.IDBConnection

    // load the the driver class
    Class.forName(M_DBDRIVER_CLASS);

    String dbUrl = "jdbc:mysql://" + hostName + "/" + dbName;
    // create a database connection
    IDBConnection conn = new DBConnection(dbUrl, userName, password, "MySQL");

    // create a model maker with the given connection parameters
    ModelMaker maker = ModelFactory.createModelRDBMaker(conn);

    ModelRDB model = (ModelRDB) maker.openModel(modelName);
View Full Code Here

Examples of com.hp.hpl.jena.db.IDBConnection

    String jdbcPassword = "";
    String jdbcType = "Derby";

    // Create database connection
    LOGGER.debug("Creating RDB database with URL " + jdbcUrl);
    IDBConnection conn = new DBConnection(jdbcUrl, jdbcUser, jdbcPassword, jdbcType);
    ModelMaker maker = ModelFactory.createModelRDBMaker(conn);

    // create or open the default model
    Model model = maker.createDefaultModel();
View Full Code Here

Examples of fr.eolya.utils.nosql.IDBConnection

 
 
  @Test
  public void testMongoDBWebSiteUrlFifoQueue() {
    try {
      IDBConnection dbConnection = DBConnectionFactory.getDBConnectionInstance("mongodb", "localhost", 27017"", "");
      ISourceItemsQueue queue = QueueFactory.getSourceItemsQueueInstance("mongodb", 1, dbConnection, "testFifoQueue", "TestMongoDBWebSiteUrlFifoQueue");
     
      if (queue!=null) {
        queue.reset();
        queue.start();
View Full Code Here

Examples of fr.eolya.utils.nosql.IDBConnection

    }
  }
 
  public void testMongoDBWebSiteUrlFifoQueue2() {
    try {
      IDBConnection dbConnection = DBConnectionFactory.getDBConnectionInstance("mongodb", "localhost", 27017"", "");
      ISourceItemsQueue queue = QueueFactory.getSourceItemsQueueInstance("mongodb", 1, dbConnection, "testFifoQueue", "TestMongoDBWebSiteUrlFifoQueue");
     
      if (queue!=null) {
        queue.reset();
        queue.start();
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.