//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public ProjectServerDBUtil(Desktop.common.nomitech.common.db.local.ProjectUrlTable paramProjectUrlTable, Desktop.common.nomitech.common.base.ProjectGroupCodesProviderFactory paramProjectGroupCodesProviderFactory) throws Exception public ProjectServerDBUtil(ProjectUrlTable paramProjectUrlTable, ProjectGroupCodesProviderFactory paramProjectGroupCodesProviderFactory) { if (configXML == null) { configXML = this.GetType().getResource("projectDB.xml"); Console.WriteLine("xml is " + configXML); } this.o_overridenFactory = paramProjectGroupCodesProviderFactory; ProjectUrlId = paramProjectUrlTable.ProjectUrlId; connectDB(paramProjectUrlTable); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public static ProjectDBUtil openProjectFromUrl(Desktop.common.nomitech.common.db.local.ProjectUrlTable paramProjectUrlTable, Desktop.common.nomitech.common.base.ProjectGroupCodesProviderFactory paramProjectGroupCodesProviderFactory) throws Exception public static ProjectDBUtil openProjectFromUrl(ProjectUrlTable paramProjectUrlTable, ProjectGroupCodesProviderFactory paramProjectGroupCodesProviderFactory) { if (paramProjectUrlTable.Dbms.Equals(Convert.ToInt32(CEP_FILE))) { return(openProjectFromFile(new File(paramProjectUrlTable.Url), paramProjectUrlTable, paramProjectGroupCodesProviderFactory)); } ProjectServerDBUtil projectServerDBUtil = (ProjectServerDBUtil)s_utilInstanceMap[paramProjectUrlTable.Url + ";" + paramProjectUrlTable.Id]; if (projectServerDBUtil == null || !projectServerDBUtil.DBLoaded) { projectServerDBUtil = new ProjectServerDBUtil(paramProjectUrlTable, paramProjectGroupCodesProviderFactory); s_utilInstanceMap[projectServerDBUtil.UniqueId] = projectServerDBUtil; return(projectServerDBUtil); } throw new ProjectDBException(); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public static ProjectFileDBUtil openProjectFromFile(java.io.File paramFile, Desktop.common.nomitech.common.db.local.ProjectUrlTable paramProjectUrlTable, Desktop.common.nomitech.common.base.ProjectGroupCodesProviderFactory paramProjectGroupCodesProviderFactory) throws Exception public static ProjectFileDBUtil openProjectFromFile(File paramFile, ProjectUrlTable paramProjectUrlTable, ProjectGroupCodesProviderFactory paramProjectGroupCodesProviderFactory) { ProjectFileDBUtil projectFileDBUtil = (ProjectFileDBUtil)s_utilInstanceMap[paramFile.AbsoluteFile + ";" + paramProjectUrlTable.Id]; if (projectFileDBUtil == null) { projectFileDBUtil = new ProjectFileDBUtil(paramFile, paramProjectUrlTable, paramProjectGroupCodesProviderFactory); s_utilInstanceMap[projectFileDBUtil.UniqueId] = projectFileDBUtil; return(projectFileDBUtil); } throw new ProjectDBException(); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public ProjectFileDBUtil(java.io.File paramFile, Desktop.common.nomitech.common.db.local.ProjectUrlTable paramProjectUrlTable, Desktop.common.nomitech.common.base.ProjectGroupCodesProviderFactory paramProjectGroupCodesProviderFactory) throws Exception public ProjectFileDBUtil(File paramFile, ProjectUrlTable paramProjectUrlTable, ProjectGroupCodesProviderFactory paramProjectGroupCodesProviderFactory) { if (configXML == null) { configXML = this.GetType().getResource("projectDB.xml"); } ProjectUrlId = paramProjectUrlTable.ProjectUrlId; this.o_overridenFactory = paramProjectGroupCodesProviderFactory; this.urlTable = paramProjectUrlTable; if (paramFile.exists()) { this.o_openedFile = paramFile; extractDBFile(paramFile); } else { throw new Exception("project not found in path: " + paramFile.AbsolutePath); } }