Package de.mhus.lib.sql

Examples of de.mhus.lib.sql.DbPoolBundle


      }
     
      cdb.setConfig("connection", ccon);
     
      cconfig.setConfig("test", cdb);
      DbPoolBundle pool = new DbPoolBundle(cconfig,null);
      Dialect dialect = pool.getPool("test").getDialect();
     
      NodeConfig cqueries = new NodeConfig();
      cqueries.setProperty("create", "create table test (a_text varchar(100))");
      cqueries.setProperty("select", "select * from test");
      cqueries.setProperty("cleanup", "delete from test");
View Full Code Here


      return pool;
    }
   
    public void testGet() throws Exception {
     
      DbPoolBundle bundle = createPool();
     
      DbPool pool = bundle.getPool("test");
      assertEquals(0, pool.getSize());
     
      DbConnection con1 = pool.getConnection();
      assertEquals(1, pool.getSize());
     
View Full Code Here

   *
   * @return
   */
  public synchronized DbPoolBundle getDbPool() {
    if (dbPool == null)
      dbPool = new DbPoolBundle();
    return dbPool;
  }
View Full Code Here

//
//      cdb.setConfig("queries", cqueries);
     
      cconfig.setConfig("test", cdb);
     
      DbPoolBundle pool = new DbPoolBundle(cconfig,null);
     
      return pool;
    }
View Full Code Here

TOP

Related Classes of de.mhus.lib.sql.DbPoolBundle

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.