本文整理了Java中org.intermine.sql.Database.getPlatform()
方法的一些代码示例,展示了Database.getPlatform()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Database.getPlatform()
方法的具体详情如下:
包路径:org.intermine.sql.Database
类名称:Database
方法名:getPlatform
[英]Gets the platform of this Database
[中]获取此数据库的平台
代码示例来源:origin: intermine/intermine
sql.setTargetDatabase(database.getPlatform().toLowerCase()); // "postgresql"
InputStream schemaFileInputStream = getClass().getClassLoader()
.getResourceAsStream(schemaFile);
代码示例来源:origin: org.intermine/intermine-objectstore
sql.setTargetDatabase(database.getPlatform().toLowerCase()); // "postgresql"
InputStream schemaFileInputStream = getClass().getClassLoader()
.getResourceAsStream(schemaFile);
代码示例来源:origin: org.intermine/intermine-objectstore
.getName());
SchemaType torqueType = SchemaType.getEnum(torqueTypeName);
Platform torquePlatform = PlatformFactory.getPlatformFor(state.getDb().getPlatform()
.toLowerCase());
Domain torqueDomain = torquePlatform.getDomainForSchemaType(torqueType);
代码示例来源:origin: intermine/intermine
.getName());
SchemaType torqueType = SchemaType.getEnum(torqueTypeName);
Platform torquePlatform = PlatformFactory.getPlatformFor(state.getDb().getPlatform()
.toLowerCase());
Domain torqueDomain = torquePlatform.getDomainForSchemaType(torqueType);
代码示例来源: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());
}
内容来源于网络,如有侵权,请联系作者删除!