Project

General

Profile

Revision 0d4ade30

ID0d4ade30e0b6f322aae76ee958a01a50b85525a8
Parent 064163b1
Child bbe0258f

Added by Andreas Müller over 8 years ago

add FMProspectiveTester

View differences:

.gitattributes
219 219
cdm-eflora/src/main/java/eu/etaxonomy/cdm/app/eflora/FloraGuianasActivator.java -text
220 220
cdm-eflora/src/main/java/eu/etaxonomy/cdm/app/eflora/FloraMalesianaActivator.java -text
221 221
cdm-eflora/src/main/java/eu/etaxonomy/cdm/app/eflora/FloraMalesianaActivator_OLD.java -text
222
cdm-eflora/src/main/java/eu/etaxonomy/cdm/app/eflora/FloraMalesianaProspectiveTester.java -text
222 223
cdm-eflora/src/main/java/eu/etaxonomy/cdm/app/eflora/FloreGabonActivator.java -text
223 224
cdm-eflora/src/main/java/eu/etaxonomy/cdm/app/testUpdate/EricaceaeTestUpdateActivator.java -text
224 225
cdm-eflora/src/main/java/eu/etaxonomy/cdm/io/eflora/EfloraImportBase.java -text
cdm-eflora/src/main/java/eu/etaxonomy/cdm/app/eflora/FloraMalesianaProspectiveTester.java
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
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.
8
*/
9

  
10
package eu.etaxonomy.cdm.app.eflora;
11

  
12
import java.util.HashSet;
13
import java.util.Set;
14

  
15
import org.apache.log4j.Logger;
16

  
17
import eu.etaxonomy.cdm.api.application.CdmApplicationController;
18
import eu.etaxonomy.cdm.api.service.ITermService;
19
import eu.etaxonomy.cdm.database.DbSchemaValidation;
20
import eu.etaxonomy.cdm.database.ICdmDataSource;
21
import eu.etaxonomy.cdm.io.api.application.CdmIoApplicationController;
22
import eu.etaxonomy.cdm.io.common.IImportConfigurator.CHECK;
23
import eu.etaxonomy.cdm.io.common.events.IIoObserver;
24
import eu.etaxonomy.cdm.io.common.events.LoggingIoObserver;
25

  
26
/**
27
 * @author a.mueller
28
 * @created 15.06.2013
29
 */
30
public class FloraMalesianaProspectiveTester extends EfloraActivatorBase {
31
	@SuppressWarnings("unused")
32
	private static final Logger logger = Logger.getLogger(FloraMalesianaProspectiveTester.class);
33
	
34
	//database validation status (create, update, validate ...)
35
	static DbSchemaValidation hbm2dll = DbSchemaValidation.VALIDATE;
36
	
37
	
38
//	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_flora_malesiana_prospective_production();
39
	static final ICdmDataSource cdmDestination = CdmDestinations.localH2();
40
//	static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_mysql();
41
//	
42
	
43

  
44
	//feature tree uuid
45
	
46
	//classification
47
	//check - import
48
	static CHECK check = CHECK.IMPORT_WITHOUT_CHECK;
49
	
50
		private IIoObserver observer = new LoggingIoObserver();
51
	private Set<IIoObserver> observerList = new HashSet<IIoObserver>();
52
	
53
	
54
	private void doImport(ICdmDataSource cdmDestination){
55
		observerList.add(observer);
56

  
57
		CdmApplicationController app = CdmIoApplicationController.NewInstance(cdmDestination, hbm2dll);
58
		ITermService service = app.getTermService();
59
	}		
60
	
61

  
62
	/**
63
	 * @param args
64
	 */
65
	public static void main(String[] args) {
66
		FloraMalesianaProspectiveTester me = new FloraMalesianaProspectiveTester();
67
		me.doImport(cdmDestination);
68
	}
69
	
70
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)