2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.cdm
.app
.common
;
14 import org
.apache
.log4j
.Logger
;
16 import eu
.etaxonomy
.cdm
.app
.berlinModelImport
.SourceBase
;
17 import eu
.etaxonomy
.cdm
.app
.tcs
.TcsSources
;
18 import eu
.etaxonomy
.cdm
.io
.common
.Source
;
25 public class CdmImportSources
extends SourceBase
{
26 @SuppressWarnings("unused")
27 private static final Logger logger
= Logger
.getLogger(CdmImportSources
.class);
29 public static Source
ROTE_LISTE_GEFAESSPFLANZEN_DB(){
30 String dbms
= Source
.MYSQL
;
31 String strServer
= "localhost";
32 String strDB
= "RL_Gefaesspflanzen_source";
34 String userName
= "root";
35 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
38 public static Source
ROTE_LISTE_DB(){
39 String dbms
= Source
.ORACLE
;
40 String strServer
= "xxx";
41 String strDB
= "dbName";
43 String userName
= "adam";
44 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
48 public static Source
GLOBIS(){
49 String dbms
= Source
.SQL_SERVER_2005
;
50 String strServer
= "LENOVO-T61";
51 String strDB
= "globis";
53 String userName
= "user";
54 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
57 public static Source
GLOBIS_ODBC(){
58 String dbms
= Source
.ODDBC
;
59 String strServer
= "LENOVO-T61";
60 String strDB
= "globis";
62 String userName
= "sa";
63 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
66 public static Source
GLOBIS_MDB(){
67 String dbms
= Source
.ACCESS
;
68 String strServer
= null;
69 String strDB
= "C:\\localCopy\\Data\\globis\\globis.mdb";
72 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
75 public static Source
GLOBIS_MDB_20120928(){
76 String dbms
= Source
.ACCESS
;
77 String strServer
= null;
78 String strDB
= "C:\\localCopy\\Data\\globis\\globis.20120928.mdb";
81 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
84 public static Source
GLOBIS_MDB_20140113(){
85 String dbms
= Source
.ACCESS
;
86 String strServer
= null;
87 String strDB
= "C:\\localCopy\\Data\\globis\\globis_20140113.mdb";
90 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
93 //Problem MS Access ODBC Driver does not work on PESIIMPORT 3
95 public static Source
GLOBIS_MDB_20140113_PESIIMPORT(){
96 String dbms
= Source
.ACCESS
;
97 String strServer
= null;
98 String strDB
= "\\\\PESIIMPORT3\\globis\\globis_20140113.mdb";
100 String userName
= "";
101 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
104 public static Source
GLOBIS_MDB_20140113_PESIIMPORT_SQLSERVER(){
105 String dbms
= Source
.SQL_SERVER_2008
;
106 String strServer
= "PESIIMPORT3";
107 String strDB
= "globis_orig_20140113";
109 String userName
= "globisImport";
110 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
113 public static URI
SYNTHESYS_SPECIMEN(){
115 URL url
= new TcsSources().getClass().getResource("/specimen/SynthesysSpecimenExample.xls");
116 String sourceUrl
= url
.toString();
117 URI uri
= URI
.create(sourceUrl
);
121 public static Source
EDAPHOBASE(){
122 String dbms
= Source
.POSTGRESQL9
;
123 String strServer
= "130.133.70.26"; //BGBM-PESISQL
124 String strDB
= "edaphobase";
126 String userName
= "postgres";
127 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
130 public static Source
EDAPHOBASE2(){
131 String dbms
= Source
.POSTGRESQL9
;
132 String strServer
= "130.133.70.26"; //BGBM-PESISQL
133 String strDB
= "edaphobase2";
135 String userName
= "postgres";
136 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);
139 public static Source
EDAPHOBASE6(){
140 String dbms
= Source
.POSTGRESQL9
;
141 String strServer
= "130.133.70.26"; //BGBM-PESISQL
142 String strDB
= "edaphobase6";
144 String userName
= "postgres";
145 return makeSource(dbms
, strServer
, strDB
, port
, userName
, null);