Project

General

Profile

Revision ef9ce120

IDef9ce120f583d469a530980bfb81e927a91fec4e
Parent 512f31a5
Child 97a346d8

Added by Andreas Müller about 9 years ago

remove some local destinations

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/app/abcdImport/SpecimenImport.java
34 34
	
35 35
	
36 36
	
37
	static final ICdmDataSource cdmDestination = CdmDestinations.local_cdm_edit_cichorieae_b();
37
	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_local_dipera();
38 38
	//check - import
39 39
	static final CHECK check = CHECK.IMPORT_WITHOUT_CHECK;
40 40
	
app-import/src/main/java/eu/etaxonomy/cdm/app/common/CdmDestinations.java
474 474
		String cdmUserName = "edit";
475 475
		return makeDestination(dbType, cdmServer, cdmDB, -1, cdmUserName, null);
476 476
	}
477
	
478
	public static ICdmDataSource local_cdm_edit_cichorieae_b(){
479
		DatabaseTypeEnum dbType = DatabaseTypeEnum.MySQL;
480
		String cdmServer = "127.0.0.1";
481
		String cdmDB = "cdm_edit_cichorieae_b"; 
482
		String cdmUserName = "edit";
483
		return makeDestination(dbType, cdmServer, cdmDB, -1, cdmUserName, null);
484
	}
485 477

  
486 478
	public static ICdmDataSource cdm_edit_palmae_a(){
487 479
		DatabaseTypeEnum dbType = DatabaseTypeEnum.MySQL;
......
490 482
		String cdmUserName = "edit";
491 483
		return makeDestination(dbType, cdmServer, cdmDB, -1, cdmUserName, null);
492 484
	}
493

  
494
	public static ICdmDataSource cdm_edit_diptera_preview_B(){
495
		DatabaseTypeEnum dbType = DatabaseTypeEnum.MySQL;
496
		String cdmServer = "127.0.0.1";
497
		String cdmDB = "cdm_edit_diptera_b"; 
498
		String cdmUserName = "edit";
499
		int port = 13306;
500
		return makeDestination(dbType, cdmServer, cdmDB, port, cdmUserName, null);
501
	}
502 485
	
503 486
	public static ICdmDataSource cdm_edit_cichorieae_preview(){
504 487
		DatabaseTypeEnum dbType = DatabaseTypeEnum.MySQL;
......
566 549
	 * @param pwd
567 550
	 * @return
568 551
	 */
569
	private static ICdmDataSource makeDestination(DatabaseTypeEnum dbType, String cdmServer, String cdmDB, int port, String cdmUserName, String pwd ){
552
	public static ICdmDataSource makeDestination(DatabaseTypeEnum dbType, String cdmServer, String cdmDB, int port, String cdmUserName, String pwd ){
570 553
		//establish connection
571 554
		pwd = AccountStore.readOrStorePassword(cdmServer, cdmDB, cdmUserName, pwd);
572 555
		ICdmDataSource destination;
app-import/src/main/java/eu/etaxonomy/cdm/app/sdd/CichorieaeActivator.java
43 43
	 * ALTER TABLE `statisticalmeasurementvalue_definedtermbase`  DROP INDEX `modifiers_id`;
44 44
	 * 
45 45
	 ********************************************************************************/
46
	static final ICdmDataSource cdmDestination = CdmDestinations.local_cdm_edit_cichorieae_b();
46
	static final ICdmDataSource cdmDestination = CdmDestinations.local_cdm_edit_cichorieae_a();
47 47
	static final String sddSource = SDDSources.Cichorieae_DA_export_sdd();
48 48
	//	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_portal_test_localhost();
49 49

  
app-import/src/main/java/eu/etaxonomy/cdm/app/wp6/diptera/DipteraCollectionImport.java
42 42

  
43 43
	public static final File acronymsFile = new File("src/main/resources/collections/Acronyms.tab");
44 44
	//datasource for use from local main()
45
	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_edit_diptera_preview_B();
45
	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_local_dipera();
46 46
	
47 47

  
48 48
	public boolean invoke(ICdmDataSource dataSource) {
app-import/src/main/java/eu/etaxonomy/cdm/app/wp6/diptera/DipteraDistributionParser.java
53 53
public class DipteraDistributionParser {
54 54
	private static final Logger logger = Logger.getLogger(DipteraDistributionParser.class);
55 55
	
56
	private static ICdmDataSource cdmDestination = CdmDestinations.cdm_edit_diptera_preview_B();
56
	private static ICdmDataSource cdmDestination = CdmDestinations.cdm_local_dipera();
57 57

  
58 58
	final static String epiSplitter = "(\\s+|\\[|\\]|\\(|\\))"; //( ' '+| '(' | ')'| '[' | ']' )
59 59
	static Pattern pattern = null;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)