Package net.sf.hajdbc.pool.generic

Examples of net.sf.hajdbc.pool.generic.GenericObjectPoolFactory


  @Override
  public <Z, D extends Database<Z>> StateManager createStateManager(DatabaseCluster<Z, D> cluster)
  {
    String location = MessageFormat.format(this.locationPattern, cluster.getId(), Strings.HA_JDBC_HOME);
    EnvironmentConfig config = new EnvironmentConfig().setAllowCreate(true).setTransactional(true);
    return new BerkeleyDBStateManager(cluster, new File(location), config, new GenericObjectPoolFactory(this));
  }
View Full Code Here


    database.setUser(this.user);
    database.setPassword(this.password);
   
    this.logger.log(Level.INFO, "State for database cluster {0} will be persisted to {1}", cluster, url);
   
    return new SQLStateManager<Z, D>(cluster, database, new GenericObjectPoolFactory(this));
  }
View Full Code Here

  @Override
  public <Z, D extends Database<Z>> StateManager createStateManager(DatabaseCluster<Z, D> cluster)
  {
    String location = MessageFormat.format(this.locationPattern, cluster.getId(), Strings.HA_JDBC_HOME);
    return new SQLiteStateManager<Z, D>(cluster, new File(location), new GenericObjectPoolFactory(this));
  }
View Full Code Here

TOP

Related Classes of net.sf.hajdbc.pool.generic.GenericObjectPoolFactory

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.