public class DbImportTextDataCreationMapper<STATE extends DbImportStateBase<?,?>> extends DbImportDescriptionElementCreationMapperBase<TextData,DbImportStateBase<?,?>>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
dbTextAttribute |
protected Feature |
defaultFeature |
protected TextFormat |
defaultFormat |
protected Language |
defaultLanguage |
dbCitationAttribute, dbMicroCitationAttribute, dbTaxonFkAttribute, isImageGallery, sourceNamespace, taxonNamespace
dbIdAttribute, objectToCreateNamespace
importMapperHelper
singleMappers
Modifier | Constructor and Description |
---|---|
protected |
DbImportTextDataCreationMapper(java.lang.String dbIdAttribute,
java.lang.String objectToCreateNamespace,
java.lang.String dbTaxonFkAttribute,
java.lang.String taxonNamespace,
java.lang.String dbTextAttribute,
Language language,
Feature feature,
TextFormat format) |
Modifier and Type | Method and Description |
---|---|
protected TextData |
createObject(java.sql.ResultSet rs)
This method creates the object to be created.
|
static DbImportTextDataCreationMapper<?> |
NewInstance(java.lang.String dbIdAttribute,
java.lang.String objectToCreateNamespace,
java.lang.String dbTaxonFkAttribute,
java.lang.String taxonNamespace)
Creates a TextData and adds it to the description of a taxon.
|
static DbImportTextDataCreationMapper<?> |
NewInstance(java.lang.String dbIdAttribute,
java.lang.String objectToCreateNamespace,
java.lang.String dbTaxonFkAttribute,
java.lang.String taxonNamespace,
java.lang.String dbTextAttribute,
Language language,
Feature feature,
TextFormat format)
Creates a TextData, adds the the in the language and the format defined and then adds it to the description of a taxon.
|
addDescriptionElement, doInvoke, getAcceptedTaxon, getTaxonDescription, setSource
addOriginalSource, getTransformer, invoke
getForeignKey, getRelatedObject, getRelatedObject, getState, initialize
getDestinationAttributeList, getDestinationAttributes, getSourceAttributeList, getSourceAttributes, getStringDbValue
toString
protected Feature defaultFeature
protected Language defaultLanguage
protected TextFormat defaultFormat
protected java.lang.String dbTextAttribute
protected DbImportTextDataCreationMapper(java.lang.String dbIdAttribute, java.lang.String objectToCreateNamespace, java.lang.String dbTaxonFkAttribute, java.lang.String taxonNamespace, java.lang.String dbTextAttribute, Language language, Feature feature, TextFormat format)
dbIdAttribute
- objectToCreateNamespace
- dbTaxonFkAttribute
- taxonNamespace
- public static DbImportTextDataCreationMapper<?> NewInstance(java.lang.String dbIdAttribute, java.lang.String objectToCreateNamespace, java.lang.String dbTaxonFkAttribute, java.lang.String taxonNamespace)
dbIdAttribute
- objectToCreateNamespace
- dbTaxonFkAttribute
- taxonNamespace
- public static DbImportTextDataCreationMapper<?> NewInstance(java.lang.String dbIdAttribute, java.lang.String objectToCreateNamespace, java.lang.String dbTaxonFkAttribute, java.lang.String taxonNamespace, java.lang.String dbTextAttribute, Language language, Feature feature, TextFormat format)
null
the default language is taken instead.dbIdAttribute
- objectToCreateNamespace
- dbTaxonFkAttribute
- taxonNamespace
- status
- protected TextData createObject(java.sql.ResultSet rs) throws java.sql.SQLException
DbImportObjectCreationMapperBase
createObject
in class DbImportObjectCreationMapperBase<TextData,DbImportStateBase<?,?>>
rs
- The result setjava.sql.SQLException
Copyright © 2007-2020 EDIT. All Rights Reserved.