Project

General

Profile

« Previous | Next » 

Revision 47e0860c

Added by Andreas Müller about 10 years ago

remove deletes from PESI export

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiRelTaxonExport.java
99 99
			boolean success = true;
100 100

  
101 101
			// PESI: Clear the database table RelTaxon.
102
			doDelete(state);
103
	
102
			//doDelete(state); -> done by stored procedure
103
			
104 104
			// Get specific mappings: (CDM) Relationship -> (PESI) RelTaxon
105 105
			mapping = getMapping();
106 106

  
......
113 113
			
114 114
			// Export name relations
115 115
			success &= doPhase02(state, mapping);
116
			
117
			if (! success){
118
				state.setUnsuccessfull();
119
			}
116 120

  
117 121
		} catch (SQLException e) {
118 122
			e.printStackTrace();
......
511 515
	 * @param state
512 516
	 * @param sr
513 517
	 */
514
	private static void invokeSynonyms(PesiExportState state, TaxonNameBase synonymTaxonName) {
518
	private void invokeSynonyms(PesiExportState state, TaxonNameBase synonymTaxonName) {
515 519
		// Store KingdomFk and Rank information in Taxon table
516 520
		Integer kingdomFk = PesiTransformer.nomenClaturalCode2Kingdom(synonymTaxonName.getNomenclaturalCode());
517 521
		Integer synonymFk = state.getDbId(synonymTaxonName);
......
528 532
	 * @param synonymParentTaxonFk
529 533
	 * @param currentTaxonFk
530 534
	 */
531
	private static boolean saveSynonymData(PesiExportState state, TaxonNameBase taxonName,
535
	private boolean saveSynonymData(PesiExportState state, TaxonNameBase taxonName,
532 536
			NomenclaturalCode nomenclaturalCode, Integer kingdomFk,
533 537
			Integer currentSynonymFk) {
534 538
		try {
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiSourceExport.java
113 113
			boolean success = true ;
114 114

  
115 115
			// PESI: Clear the database table Source.
116
			doDelete(state);
117

  
116
			//doDelete(state);  -> done by stored procedure
117
			
118 118
			// Get specific mappings: (CDM) Reference -> (PESI) Source
119 119
			PesiExportMapping mapping = getMapping();
120 120

  
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiTaxonExport.java
189 189
			boolean success = true;
190 190
	
191 191
			// PESI: Clear the database table Taxon.
192
			doDelete(state);
192
//			doDelete(state);
193 193
			
194 194
			// Get specific mappings: (CDM) Taxon -> (PESI) Taxon
195 195
			PesiExportMapping mapping = getMapping();

Also available in: Unified diff