@Test public void testInit() throws Exception { dropSchema(schema); schema.init(emireCfg); }
void init(EmpireConfiguration conf) throws SQLException { DBDatabaseDriver drv = conf.getDriver(); Connection conn = conf.getConnection(); open(drv, conn); try { int schemaVersion = schemaExists(this, conn); if (schemaVersion > 0) { schemaVersion = ProarcDatabaseV5.upgradeToVersion6( schemaVersion, this, conn, conf); if (schemaVersion != VERSION) { throw new SQLException("Invalid schema version " + schemaVersion); } } else { createSchema(this, conn); } } finally { conn.close(); } }
ProarcDatabase extends DBDatabase { void init(EmpireConfiguration conf) throws SQLException { DBDatabaseDriver drv = conf.getDriver(); Connection conn = conf.getConnection(); open(drv, conn); try { int schemaVersion = schemaExists(this, conn); if (schemaVersion > 0) { schemaVersion = ProarcDatabaseV5.upgradeToVersion6( schemaVersion, this, conn, conf); if (schemaVersion != VERSION) { throw new SQLException("Invalid schema version " + schemaVersion); } } else { createSchema(this, conn); } } finally { conn.close(); } } }
ProarcDatabase extends DBDatabase { void init(EmpireConfiguration conf) throws SQLException { DBDatabaseDriver drv = conf.getDriver(); Connection conn = conf.getConnection(); open(drv, conn); try { int schemaVersion = schemaExists(this, conn); if (schemaVersion > 0) { schemaVersion = ProarcDatabaseV5.upgradeToVersion6( schemaVersion, this, conn, conf); if (schemaVersion != VERSION) { throw new SQLException("Invalid schema version " + schemaVersion); } } else { createSchema(this, conn); } } finally { conn.close(); } } ProarcDatabase(); }
ProarcDatabase extends DBDatabase { void init(EmpireConfiguration conf) throws SQLException { DBDatabaseDriver drv = conf.getDriver(); Connection conn = conf.getConnection(); open(drv, conn); try { int schemaVersion = schemaExists(this, conn); if (schemaVersion > 0) { schemaVersion = ProarcDatabaseV5.upgradeToVersion6( schemaVersion, this, conn, conf); if (schemaVersion != VERSION) { throw new SQLException("Invalid schema version " + schemaVersion); } } else { createSchema(this, conn); } } finally { conn.close(); } } ProarcDatabase();  }
ProarcDatabase extends DBDatabase { void init(EmpireConfiguration conf) throws SQLException { DBDatabaseDriver drv = conf.getDriver(); Connection conn = conf.getConnection(); open(drv, conn); try { int schemaVersion = schemaExists(this, conn); if (schemaVersion > 0) { schemaVersion = ProarcDatabaseV5.upgradeToVersion6( schemaVersion, this, conn, conf); if (schemaVersion != VERSION) { throw new SQLException("Invalid schema version " + schemaVersion); } } else { createSchema(this, conn); } } finally { conn.close(); } } ProarcDatabase();  static final int VERSION; final ProarcVersionTable tableProarcVersion; final BatchTable tableBatch; final BatchItemTable tableBatchItem; final UserTable tableUser; final UserGroupTable tableUserGroup; final GroupMemberTable tableGroupMember; final GroupPermissionTable tableGroupPermission; final WorkflowJobTable tableWorkflowJob; final WorkflowTaskTable tableWorkflowTask; final WorkflowMaterialInTaskTable tableWorkflowMaterialInTask; final WorkflowParameterTable tableWorkflowParameter; final WorkflowMaterialTable tableWorkflowMaterial; final WorkflowFolderTable tableWorkflowFolder; final WorkflowDigObjTable tableWorkflowDigObj; final WorkflowPhysicalDocTable tableWorkflowPhysicalDoc; final DBRelation relationWorkflowJob_ParentId_Fk; final DBRelation relationWorkflowMaterialInTask_MaterialId_Fk; final DBRelation relationWorkflowMaterialInTask_TaskId_Fk; }