org.intermine.sql.Database.getPlatform()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(124)

本文整理了Java中org.intermine.sql.Database.getPlatform()方法的一些代码示例,展示了Database.getPlatform()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Database.getPlatform()方法的具体详情如下:
包路径:org.intermine.sql.Database
类名称:Database
方法名:getPlatform

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());
}

相关文章