public abstract class DbImportSupplementCreationMapperBase<SUPPLEMENT extends VersionableEntity,SUPPLEMENTABLE extends AnnotatableEntity,STATE extends DbImportStateBase<?,?>,TYPE extends DefinedTermBase> extends DbImportObjectCreationMapperBase<SUPPLEMENT,STATE>
Modifier and Type | Field and Description |
---|---|
protected boolean |
addOriginalSourceId |
protected java.lang.String |
dbSupplementedObjectAttribute |
protected java.lang.String |
dbSupplementValueAttribute |
protected TYPE |
supplementType |
dbIdAttribute, objectToCreateNamespace
importMapperHelper
singleMappers
Modifier | Constructor and Description |
---|---|
protected |
DbImportSupplementCreationMapperBase(java.lang.String dbSupplementValueAttribute,
java.lang.String dbSupplementedObjectAttribute,
java.lang.String dbIdAttribute,
java.lang.String supplementedObjectNamespace,
TYPE supplementType) |
Modifier and Type | Method and Description |
---|---|
void |
addOriginalSource(java.sql.ResultSet rs,
SUPPLEMENT supplement)
TODO also implemented in CdmImportBase (reduce redundance)
|
protected abstract boolean |
addSupplement(SUPPLEMENT supplement,
SUPPLEMENTABLE supplementableEntity,
java.lang.String id)
Adds the supplement to the supplementable entity.
|
protected SUPPLEMENT |
doInvoke(java.sql.ResultSet rs,
SUPPLEMENT supplement) |
protected abstract void |
setSupplementValue(java.sql.ResultSet rs,
SUPPLEMENT supplement) |
createObject, getTransformer, invoke
getForeignKey, getRelatedObject, getRelatedObject, getState, initialize
getDestinationAttributeList, getDestinationAttributes, getSourceAttributeList, getSourceAttributes, getStringDbValue
toString
protected java.lang.String dbSupplementValueAttribute
protected java.lang.String dbSupplementedObjectAttribute
protected TYPE extends DefinedTermBase supplementType
protected boolean addOriginalSourceId
protected DbImportSupplementCreationMapperBase(java.lang.String dbSupplementValueAttribute, java.lang.String dbSupplementedObjectAttribute, java.lang.String dbIdAttribute, java.lang.String supplementedObjectNamespace, TYPE supplementType)
mappingImport
- protected SUPPLEMENT doInvoke(java.sql.ResultSet rs, SUPPLEMENT supplement) throws java.sql.SQLException
doInvoke
in class DbImportObjectCreationMapperBase<SUPPLEMENT extends VersionableEntity,STATE extends DbImportStateBase<?,?>>
java.sql.SQLException
protected abstract void setSupplementValue(java.sql.ResultSet rs, SUPPLEMENT supplement) throws java.sql.SQLException
java.sql.SQLException
protected abstract boolean addSupplement(SUPPLEMENT supplement, SUPPLEMENTABLE supplementableEntity, java.lang.String id)
null
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 Extension
id
- the supplementableEntity original source id (needed for verbose logging)public void addOriginalSource(java.sql.ResultSet rs, SUPPLEMENT supplement) throws java.sql.SQLException
DbImportObjectCreationMapperBase
addOriginalSource
in class DbImportObjectCreationMapperBase<SUPPLEMENT extends VersionableEntity,STATE extends DbImportStateBase<?,?>>
java.sql.SQLException
Copyright © 2007-2020 EDIT. All Rights Reserved.