本文整理了Java中org.intermine.sql.Database.configure()
方法的一些代码示例,展示了Database.configure()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Database.configure()
方法的具体详情如下:
包路径:org.intermine.sql.Database
类名称:Database
方法名:configure
[英]Configures a datasource from a Properties object
[中]从属性对象配置数据源
代码示例来源:origin: intermine/intermine
configure(subProps);
代码示例来源:origin: org.intermine/intermine-objectstore
configure(subProps);
代码示例来源:origin: intermine/intermine
+ HIKARI_CLASSNAME
+ " in default.intermine.properties or minename.properties.");
configure(props);
代码示例来源:origin: org.intermine/intermine-objectstore
+ HIKARI_CLASSNAME
+ " in default.intermine.properties or minename.properties.");
configure(props);
代码示例来源:origin: intermine/intermine
public void testConfigure() throws Exception {
Database db = new Database();
db.configure(props);
assertTrue(db.getDataSource() != null);
assertTrue(db.getDataSource() instanceof PGPoolingDataSource);
assertEquals("PostgreSQL", db.getPlatform());
assertEquals("dbserver.mydomain.org", ((PGPoolingDataSource) db.getDataSource()).getServerName());
assertEquals("test", ((PGPoolingDataSource) db.getDataSource()).getDatabaseName());
assertEquals(10, ((PGPoolingDataSource) db.getDataSource()).getMaxConnections());
}
内容来源于网络,如有侵权,请联系作者删除!