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