Project

General

Profile

« Previous | Next » 

Revision 37bd2647

Added by Katja Luther about 12 years ago

fixes in PESI-Export

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiRelTaxonExport.java
137 137
		//taxon relations
138 138
		int partitionCount = 0;
139 139
		int totalCount = 0;
140
		while ((list = getNextTaxonRelationshipPartition(null, limit, partitionCount++, null)) != null ) {
140
		while ((list = getNextTaxonRelationshipPartition( limit, partitionCount++, null)) != null ) {
141 141
			totalCount = totalCount + list.size();
142 142
			logger.info("Read " + list.size() + " PESI relations. Limit: " + limit + ". Total: " + totalCount );
143 143
//			if (list.size() > 0){
......
152 152
				}
153 153
			}
154 154
		}
155
		list = null;
155 156
		
156 157
		return success;
157 158
	}
......
206 207
				}
207 208
			}
208 209
		}
209
		
210
		list = null;
210 211
		logger.info("End PHASE 2: Name Relationships ...");
211 212
				
212 213
		return success;
......
730 731
	 * Returns the CDM to PESI specific export mappings.
731 732
	 * @return The {@link PesiExportMapping PesiExportMapping}.
732 733
	 */
733
	private PesiExportMapping getMapping() {
734
	PesiExportMapping getMapping() {
734 735
		PesiExportMapping mapping = new PesiExportMapping(dbTableName);
735 736
		
736 737
		mapping.addMapper(MethodMapper.NewInstance("TaxonFk1", this.getClass(), "getTaxonFk1", standardMethodParameter, PesiExportState.class));

Also available in: Unified diff