eu.etaxonomy.cdm.io.common.mapping
Class DbImportSupplementCreationMapperBase<SUPPLEMENT extends VersionableEntity,SUPPLEMENTABLE extends AnnotatableEntity,STATE extends DbImportStateBase<?,?>,TYPE extends DefinedTermBase>
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<CREATE,STATE>
eu.etaxonomy.cdm.io.common.mapping.DbImportObjectCreationMapperBase<SUPPLEMENT,STATE>
eu.etaxonomy.cdm.io.common.mapping.DbImportSupplementCreationMapperBase<SUPPLEMENT,SUPPLEMENTABLE,STATE,TYPE>
- All Implemented Interfaces:
- IDbImportMapper<STATE,SUPPLEMENT>
- Direct Known Subclasses:
- DbImportAnnotationCreationMapper, DbImportExtensionCreationMapper, DbImportMarkerCreationMapper
public abstract class DbImportSupplementCreationMapperBase<SUPPLEMENT extends VersionableEntity,SUPPLEMENTABLE extends AnnotatableEntity,STATE extends DbImportStateBase<?,?>,TYPE extends DefinedTermBase>
- extends DbImportObjectCreationMapperBase<SUPPLEMENT,STATE>
- Version:
- 1.0
- Author:
- a.mueller
dbSupplementValueAttribute
protected String dbSupplementValueAttribute
dbSupplementedObjectAttribute
protected String dbSupplementedObjectAttribute
supplementType
protected TYPE extends DefinedTermBase supplementType
addOriginalSourceId
protected boolean addOriginalSourceId
DbImportSupplementCreationMapperBase
protected DbImportSupplementCreationMapperBase(String dbSupplementValueAttribute,
String dbSupplementedObjectAttribute,
String dbIdAttribute,
String supplementedObjectNamespace,
TYPE supplementType)
- Parameters:
mappingImport -
doInvoke
protected SUPPLEMENT doInvoke(ResultSet rs,
SUPPLEMENT supplement)
throws SQLException
- Specified by:
doInvoke in class DbImportObjectCreationMapperBase<SUPPLEMENT extends VersionableEntity,STATE extends DbImportStateBase<?,?>>
- Throws:
SQLException
setSupplementValue
protected abstract void setSupplementValue(ResultSet rs,
SUPPLEMENT supplement)
throws SQLException
- Parameters:
value -
- Throws:
SQLException
addSupplement
protected abstract boolean addSupplement(SUPPLEMENT supplement,
SUPPLEMENTABLE supplementableEntity,
String id)
- Adds the supplement to the supplementable entity. Returns falls if supplementable entity is
null
- Parameters:
supplement - the supplement (e.g. an instance of class Extension)supplementableEntity - the supplementable entity (e.g. an IdentifiableEntity in case of a
supplement of type Extensionid - the supplementableEntity original source id (needed for verbose logging)
addOriginalSource
public void addOriginalSource(ResultSet rs,
SUPPLEMENT supplement)
throws SQLException
- Description copied from class:
DbImportObjectCreationMapperBase
- TODO also implemented in CdmImportBase (reduce redundance)
- Overrides:
addOriginalSource in class DbImportObjectCreationMapperBase<SUPPLEMENT extends VersionableEntity,STATE extends DbImportStateBase<?,?>>
- Throws:
SQLException
Copyright © 2007-2013 EDIT. All Rights Reserved.