public class DbImportSynonymMapper<STATE extends DbImportStateBase<?,?>> extends DbImportMultiAttributeMapperBase<CdmBase,STATE>
SynonymType
,
synonyms relationships that are handled as concept relationships if the synonym needs to be handled
as accepted taxon (misapplied names, pro parte synonyms, synonyms with attached factual data, ...)
and even synonym relationships which in reality are only name relationships.
The mapping is defined in the transformer.DbImportTaxIncludedInMapper
importMapperHelper
singleMappers
Modifier | Constructor and Description |
---|---|
protected |
DbImportSynonymMapper(java.lang.String fromAttribute,
java.lang.String toAttribute,
SynonymType synType,
TaxonRelationshipType relType,
java.lang.String relatedObjectNamespace,
java.lang.String relTypeAttribute,
boolean saveSourceValueAsAnnotation) |
Modifier and Type | Method and Description |
---|---|
protected CdmBase |
getRelatedObject(java.sql.ResultSet rs,
java.lang.String dbAttribute)
//TODO copied from DbImportObjectMapper.
|
CdmBase |
invoke(java.sql.ResultSet rs,
CdmBase cdmBase) |
static DbImportSynonymMapper<?> |
NewInstance(java.lang.String dbFromAttribute,
java.lang.String dbToAttribute,
java.lang.String relatedObjectTaxonNamespace,
java.lang.String relTypeAttribute,
SynonymType defaultSynonymType,
TaxonRelationshipType defaultTaxonRelationshipType,
boolean saveSourceValueAsAnnotation)
Creates a new instance of SynonymMapper.
|
getForeignKey, getRelatedObject, getRelatedObject, getState, initialize
getDestinationAttributeList, getDestinationAttributes, getSourceAttributeList, getSourceAttributes, getStringDbValue
toString
protected DbImportSynonymMapper(java.lang.String fromAttribute, java.lang.String toAttribute, SynonymType synType, TaxonRelationshipType relType, java.lang.String relatedObjectNamespace, java.lang.String relTypeAttribute, boolean saveSourceValueAsAnnotation)
public static DbImportSynonymMapper<?> NewInstance(java.lang.String dbFromAttribute, java.lang.String dbToAttribute, java.lang.String relatedObjectTaxonNamespace, java.lang.String relTypeAttribute, SynonymType defaultSynonymType, TaxonRelationshipType defaultTaxonRelationshipType, boolean saveSourceValueAsAnnotation)
dbFromAttribute
- dbToAttribute
- relatedObjectNamespace
- relTypeAttribute
- the attribute in the source DB to compute the relationship type(s) fromdefaultTaxonRelationshipType
- this relationship type is taken for accepted taxa
being synonyms (may be the case if data are dirty)public CdmBase invoke(java.sql.ResultSet rs, CdmBase cdmBase) throws java.sql.SQLException
java.sql.SQLException
protected CdmBase getRelatedObject(java.sql.ResultSet rs, java.lang.String dbAttribute) throws java.sql.SQLException
java.sql.SQLException
Copyright © 2007-2020 EDIT. All Rights Reserved.