38553a85c842c7665790f5922ae1e21b97a352b1
3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.app
.common
;
15 import org
.apache
.log4j
.Logger
;
17 import eu
.etaxonomy
.cdm
.app
.berlinModelImport
.SourceBase
;
18 import eu
.etaxonomy
.cdm
.app
.tcs
.TcsSources
;
19 import eu
.etaxonomy
.cdm
.io
.common
.Source
;
26 public class CdmImportSources
extends SourceBase
{
27 @SuppressWarnings("unused")
28 private static final Logger logger
= Logger
.getLogger(CdmImportSources
.class);
30 public static Source
ROTE_LISTE_DB(){
31 String dbms
= Source
.ORACLE
;
32 String strServer
= "xxx";
33 String strDB
= "dbName";
35 String userName
= "adam";
36 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
40 public static Source
GLOBIS(){
41 String dbms
= Source
.SQL_SERVER_2005
;
42 String strServer
= "LENOVO-T61";
43 String strDB
= "globis";
45 String userName
= "user";
46 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
49 public static Source
GLOBIS_ODBC(){
50 String dbms
= Source
.ODDBC
;
51 String strServer
= "LENOVO-T61";
52 String strDB
= "globis";
54 String userName
= "sa";
55 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
58 public static Source
GLOBIS_MDB(){
59 String dbms
= Source
.ACCESS
;
60 String strServer
= null;
61 String strDB
= "C:\\localCopy\\Data\\globis\\globis.mdb";
64 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
67 public static Source
GLOBIS_MDB_20120928(){
68 String dbms
= Source
.ACCESS
;
69 String strServer
= null;
70 String strDB
= "C:\\localCopy\\Data\\globis\\globis.20120928.mdb";
73 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
76 public static Source
GLOBIS_MDB_20140113(){
77 String dbms
= Source
.ACCESS
;
78 String strServer
= null;
79 String strDB
= "C:\\localCopy\\Data\\globis\\globis_20140113.mdb";
82 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
85 //Problem MS Access ODBC Driver does not work on PESIIMPORT 3
87 public static Source
GLOBIS_MDB_20140113_PESIIMPORT(){
88 String dbms
= Source
.ACCESS
;
89 String strServer
= null;
90 String strDB
= "\\\\PESIIMPORT3\\globis\\globis_20140113.mdb";
93 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
96 public static Source
GLOBIS_MDB_20140113_PESIIMPORT_SQLSERVER(){
97 String dbms
= Source
.SQL_SERVER_2008
;
98 String strServer
= "PESIIMPORT3";
99 String strDB
= "globis_orig_20140113";
101 String userName
= "pesiexport";
102 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
105 public static URI
SYNTHESYS_SPECIMEN(){
107 URL url
= new TcsSources().getClass().getResource("/specimen/SynthesysSpecimenExample.xls");
108 String sourceUrl
= url
.toString();
109 URI uri
= URI
.create(sourceUrl
);