*/\r
package eu.etaxonomy.cdm.app.common;\r
\r
+import java.net.URI;\r
+import java.net.URL;\r
+\r
import org.apache.log4j.Logger;\r
+\r
+import eu.etaxonomy.cdm.app.tcs.TcsSources;\r
import eu.etaxonomy.cdm.common.AccountStore;\r
import eu.etaxonomy.cdm.io.common.Source;\r
\r
String dbms = Source.ACCESS;\r
String strServer = null;\r
//String strDB = "fernsTest";\r
- String strDB = "C:\\localCopy\\Data\\eflora\\africa\\checklist_flore_afrique_centrale_corr.mdb";\r
+ String strDB = "C:\\localCopy\\Data\\eflora\\africa\\checklist\\checklist_flore_afrique_centrale_corr.mdb";\r
int port = 1433;\r
String userName = "";\r
return makeSource(dbms, strServer, strDB, port, userName, null);\r
String dbms = Source.ACCESS;\r
String strServer = null;\r
//String strDB = "fernsTest";\r
- String strDB = "C:\\localCopy\\Data\\eflora\\africa\\Synopsis_Database_corrected.mdb";\r
- int port = 1433;\r
- String userName = "";\r
- return makeSource(dbms, strServer, strDB, port, userName, null);\r
- }\r
-\r
- public static Source AFRICA_FERNS_ACCESS_OLD(){\r
- // \r
- String dbms = Source.ACCESS;\r
- String strServer = null;\r
- //String strDB = "fernsTest";\r
- String strDB = "C:\\localCopy\\Data\\eflora\\africa\\Mail_2010_05_05\\test.mdb";\r
+ String strDB = "C:\\localCopy\\Data\\eflora\\africa\\ferns\\Synopsis_Database_corrected.mdb";\r
int port = 1433;\r
String userName = "";\r
return makeSource(dbms, strServer, strDB, port, userName, null);\r
}\r
-\r
\r
public static Source GLOBIS(){\r
- // BerlinModel - Pesi-ERMS\r
String dbms = Source.SQL_SERVER_2005;\r
String strServer = "LENOVO-T61";\r
String strDB = "globis";\r
}\r
\r
public static Source GLOBIS_ODBC(){\r
- // BerlinModel - Pesi-ERMS\r
String dbms = Source.ODDBC;\r
String strServer = "LENOVO-T61";\r
String strDB = "globis";\r
return makeSource(dbms, strServer, strDB, port, userName, null);\r
}\r
\r
+ public static Source GLOBIS_MDB(){\r
+ String dbms = Source.ACCESS;\r
+ String strServer = null;\r
+ String strDB = "C:\\localCopy\\Data\\globis\\globis.mdb";\r
+ int port = -1;\r
+ String userName = "";\r
+ return makeSource(dbms, strServer, strDB, port, userName, null);\r
+ }\r
+ \r
+ \r
+ public static URI SYNTHESYS_SPECIMEN(){\r
+ // tcsXmlTest.xml\r
+ URL url = new TcsSources().getClass().getResource("/specimen/SynthesysSpecimenExample.xls");\r
+ String sourceUrl = url.toString();\r
+ URI uri = URI.create(sourceUrl);\r
+ return uri; \r
+ }\r
\r
/**\r
* Initializes the source.\r