public class DbImportAnnotationCreationMapper extends DbImportSupplementCreationMapperBase<Annotation,AnnotatableEntity,DbImportStateBase<?,?>,AnnotationType>
Modifier and Type | Field and Description |
---|---|
protected Language |
language |
addOriginalSourceId, dbSupplementedObjectAttribute, dbSupplementValueAttribute, supplementType
dbIdAttribute, objectToCreateNamespace
importMapperHelper
singleMappers
Modifier | Constructor and Description |
---|---|
protected |
DbImportAnnotationCreationMapper(java.lang.String dbSupplementedObjectAttribute,
java.lang.String supplementedObjectNamespace,
java.lang.String dbSupplementValueAttribute,
Language language,
java.lang.String dbIdAttribute,
AnnotationType supplementType) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addSupplement(Annotation annotation,
AnnotatableEntity annotatableEntity,
java.lang.String id)
Adds the supplement to the supplementable entity.
|
protected Annotation |
createObject(java.sql.ResultSet rs)
This method creates the object to be created.
|
static DbImportAnnotationCreationMapper |
NewInstance(java.lang.String dbAnnotatedObjectAttribute,
java.lang.String annotatedObjectNamespace) |
static DbImportAnnotationCreationMapper |
NewInstance(java.lang.String dbAnnotatedObjectAttribute,
java.lang.String annotatedObjectNamespace,
java.lang.String dbAnnotationTextAttribute,
Language language,
java.lang.String dbIdAttribute,
AnnotationType annotationType)
Creates an annotation mapper which creates an annotation and sets the annotation text,
the annotation language and annotation (added to this annotation) holding the original
source id.
|
protected void |
setSupplementValue(java.sql.ResultSet rs,
Annotation annotation) |
addOriginalSource, doInvoke
getTransformer, invoke
getForeignKey, getRelatedObject, getRelatedObject, getState, initialize
getDestinationAttributeList, getDestinationAttributes, getSourceAttributeList, getSourceAttributes, getStringDbValue
toString
protected Language language
protected DbImportAnnotationCreationMapper(java.lang.String dbSupplementedObjectAttribute, java.lang.String supplementedObjectNamespace, java.lang.String dbSupplementValueAttribute, Language language, java.lang.String dbIdAttribute, AnnotationType supplementType)
dbSupplementValueAttribute
- dbSupplementedObjectAttribute
- dbIdAttribute
- supplementedObjectNamespace
- supplementType
- public static DbImportAnnotationCreationMapper NewInstance(java.lang.String dbAnnotatedObjectAttribute, java.lang.String annotatedObjectNamespace)
dbAnnotatedObjectAttribute
- annotatedObjectNamespace
- public static DbImportAnnotationCreationMapper NewInstance(java.lang.String dbAnnotatedObjectAttribute, java.lang.String annotatedObjectNamespace, java.lang.String dbAnnotationTextAttribute, Language language, java.lang.String dbIdAttribute, AnnotationType annotationType)
dbAnnotatedObjectAttribute
- - obligatoryannotatedObjectNamespace
- - obligatorydbAnnotationTextAttribute
- language
- dbIdAttribute
- annotationType
- protected boolean addSupplement(Annotation annotation, AnnotatableEntity annotatableEntity, java.lang.String id)
DbImportSupplementCreationMapperBase
null
addSupplement
in class DbImportSupplementCreationMapperBase<Annotation,AnnotatableEntity,DbImportStateBase<?,?>,AnnotationType>
annotation
- the supplement (e.g. an instance of class Extension)annotatableEntity
- 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)protected void setSupplementValue(java.sql.ResultSet rs, Annotation annotation) throws java.sql.SQLException
setSupplementValue
in class DbImportSupplementCreationMapperBase<Annotation,AnnotatableEntity,DbImportStateBase<?,?>,AnnotationType>
java.sql.SQLException
protected Annotation createObject(java.sql.ResultSet rs) throws java.sql.SQLException
DbImportObjectCreationMapperBase
createObject
in class DbImportObjectCreationMapperBase<Annotation,DbImportStateBase<?,?>>
rs
- The result setjava.sql.SQLException
Copyright © 2007-2020 EDIT. All Rights Reserved.