public class DbImportMarkerCreationMapper extends DbImportSupplementCreationMapperBase<Marker,AnnotatableEntity,DbImportStateBase<?,?>,MarkerType>
addOriginalSourceId, dbSupplementedObjectAttribute, dbSupplementValueAttribute, supplementType
dbIdAttribute, objectToCreateNamespace
importMapperHelper
singleMappers
Modifier | Constructor and Description |
---|---|
protected |
DbImportMarkerCreationMapper(java.lang.String dbSupplementedObjectAttribute,
java.lang.String supplementedObjectNamespace,
java.lang.String dbSupplementValueAttribute,
java.lang.String dbIdAttribute,
MarkerType supplementType) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addSupplement(Marker marker,
AnnotatableEntity annotatableEntity,
java.lang.String id)
Adds the supplement to the supplementable entity.
|
protected Marker |
createObject(java.sql.ResultSet rs)
This method creates the object to be created.
|
static DbImportMarkerCreationMapper |
NewInstance(java.lang.String dbMarkedObjectAttribute,
java.lang.String markedObjectNamespace)
Creates a marker mapper which creates an empty marker.
|
static DbImportMarkerCreationMapper |
NewInstance(java.lang.String dbMarkedObjectAttribute,
java.lang.String markedObjectNamespace,
java.lang.String dbMarkerValueAttribute,
java.lang.String dbIdAttribute,
MarkerType markerType)
Creates a marker mapper which creates a marker and sets the marker flag and the marker type and adds
an Annotation holding the original source id
|
protected void |
setSupplementValue(java.sql.ResultSet rs,
Marker marker) |
addOriginalSource, doInvoke
getTransformer, invoke
getForeignKey, getRelatedObject, getRelatedObject, getState, initialize
getDestinationAttributeList, getDestinationAttributes, getSourceAttributeList, getSourceAttributes, getStringDbValue
toString
protected DbImportMarkerCreationMapper(java.lang.String dbSupplementedObjectAttribute, java.lang.String supplementedObjectNamespace, java.lang.String dbSupplementValueAttribute, java.lang.String dbIdAttribute, MarkerType supplementType)
dbSupplementValueAttribute
- dbSupplementedObjectAttribute
- dbIdAttribute
- supplementedObjectNamespace
- supplementType
- public static DbImportMarkerCreationMapper NewInstance(java.lang.String dbMarkedObjectAttribute, java.lang.String markedObjectNamespace)
dbMarkedObjectAttribute
- markedObjectNamespace
- public static DbImportMarkerCreationMapper NewInstance(java.lang.String dbMarkedObjectAttribute, java.lang.String markedObjectNamespace, java.lang.String dbMarkerValueAttribute, java.lang.String dbIdAttribute, MarkerType markerType)
dbMarkedObjectAttribute
- markedObjectNamespace
- dbMarkerValueAttribute
- dbIdAttribute
- markerType
- protected boolean addSupplement(Marker marker, AnnotatableEntity annotatableEntity, java.lang.String id)
DbImportSupplementCreationMapperBase
null
addSupplement
in class DbImportSupplementCreationMapperBase<Marker,AnnotatableEntity,DbImportStateBase<?,?>,MarkerType>
marker
- 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, Marker marker) throws java.sql.SQLException
setSupplementValue
in class DbImportSupplementCreationMapperBase<Marker,AnnotatableEntity,DbImportStateBase<?,?>,MarkerType>
java.sql.SQLException
protected Marker createObject(java.sql.ResultSet rs) throws java.sql.SQLException
DbImportObjectCreationMapperBase
createObject
in class DbImportObjectCreationMapperBase<Marker,DbImportStateBase<?,?>>
rs
- The result setjava.sql.SQLException
Copyright © 2007-2020 EDIT. All Rights Reserved.