eu.etaxonomy.cdm.io.common.mapping
Class DbImportSynonymMapper<STATE extends DbImportStateBase<?,?>>
java.lang.Object
eu.etaxonomy.cdm.io.common.mapping.CdmMapperBase
eu.etaxonomy.cdm.io.common.mapping.CdmAttributeMapperBase
eu.etaxonomy.cdm.io.common.mapping.MultipleAttributeMapperBase<CdmSingleAttributeMapperBase>
eu.etaxonomy.cdm.io.common.mapping.DbImportMultiAttributeMapperBase<CdmBase,STATE>
eu.etaxonomy.cdm.io.common.mapping.DbImportSynonymMapper<STATE>
- Type Parameters:
CDM_BASE - STATE -
- All Implemented Interfaces:
- IDbImportMapper<STATE,CdmBase>
public class DbImportSynonymMapper<STATE extends DbImportStateBase<?,?>>
- extends DbImportMultiAttributeMapperBase<CdmBase,STATE>
- Version:
- 1.0
- Author:
- a.mueller
DbImportSynonymMapper
protected DbImportSynonymMapper(String fromAttribute,
String toAttribute,
TaxonRelationshipType relType,
String relatedObjectNamespace,
String relTypeAttribute)
- Parameters:
relatedObjectNamespace - mappingImport -
NewInstance
public static DbImportSynonymMapper<?> NewInstance(String dbFromAttribute,
String dbToAttribute,
String relatedObjectNamespace,
String relTypeAttribute,
TaxonRelationshipType taxonRelationshipType)
- Creates a new instance of SynonymMapper.
- Parameters:
dbFromAttribute - dbToAttribute - relatedObjectNamespace - relTypeAttribute - taxonRelationshipType - this relationshiptype is taken for accepted taxa being synonyms (may be the case if data are dirty)
- Returns:
invoke
public CdmBase invoke(ResultSet rs,
CdmBase cdmBase)
throws SQLException
- Throws:
SQLException
getRelatedObject
protected CdmBase getRelatedObject(ResultSet rs,
String dbAttribute)
throws SQLException
- //TODO copied from DbImportObjectMapper. Maybe these can be merged again in future
- Parameters:
rs - dbAttribute -
- Returns:
-
- Throws:
SQLException
Copyright © 2007-2013 EDIT. All Rights Reserved.