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
.berlinModelImport
;
11 import eu
.etaxonomy
.cdm
.common
.AccountStore
;
12 import eu
.etaxonomy
.cdm
.io
.common
.Source
;
19 public abstract class SourceBase
{
23 * Initializes the source.
32 public static Source
makeSource(String dbms
, String strServer
, String strDB
, int port
, String userName
, String pwd
){
33 //establish connection
35 source
= new Source(dbms
, strServer
, strDB
);
38 pwd
= AccountStore
.readOrStorePassword(dbms
, strServer
, userName
, pwd
);
39 source
.setUserAndPwd(userName
, pwd
);
40 // write pwd to account store