Revision 892efc69
Added by Andreas Kohlbecker almost 14 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelWebMarkerImport.java | ||
---|---|---|
76 | 76 |
*/ |
77 | 77 |
public boolean doPartition(ResultSetPartitioner partitioner, BerlinModelImportState state) { |
78 | 78 |
boolean success = true ; |
79 |
|
|
79 |
|
|
80 | 80 |
MapWrapper<Taxon> taxonMap = (MapWrapper<Taxon>)state.getStore(ICdmIO.TAXON_STORE); |
81 | 81 |
Set<TaxonBase> taxaToBeSaved = new HashSet<TaxonBase>(); |
82 | 82 |
|
... | ... | |
127 | 127 |
getTaxonService().save(taxaToBeSaved); |
128 | 128 |
return success; |
129 | 129 |
} |
130 |
|
|
130 |
|
|
131 | 131 |
|
132 | 132 |
/* (non-Javadoc) |
133 | 133 |
* @see eu.etaxonomy.cdm.io.berlinModel.in.IPartitionedIO#getRelatedObjectsForPartition(java.sql.ResultSet) |
... | ... | |
147 | 147 |
logger.warn("A marker is not related to table PTaxon. This case is not handled yet!"); |
148 | 148 |
}else{ |
149 | 149 |
handleForeignKey(rs, taxonIdSet, "RIdentifierFk"); |
150 |
}
|
|
150 |
} |
|
151 | 151 |
} |
152 |
|
|
152 |
|
|
153 | 153 |
//taxon map |
154 | 154 |
nameSpace = BerlinModelTaxonImport.NAMESPACE; |
155 | 155 |
cdmClass = TaxonBase.class; |
... | ... | |
163 | 163 |
return result; |
164 | 164 |
} |
165 | 165 |
|
166 |
|
|
166 | 167 |
private boolean addMarker(AnnotatableEntity annotatableEntity, boolean activeFlag, int markerCategoryFk, Map<String, DefinedTermBase> map ){ |
167 | 168 |
MarkerType markerType = (MarkerType)map.get("webMarkerCategory_" + markerCategoryFk); |
168 | 169 |
if (markerType == null){ |
Also available in: Unified diff
merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk