eu.etaxonomy.cdm.io.berlinModel.in
Class BerlinModelImportBase
java.lang.Object
eu.etaxonomy.cdm.api.application.CdmApplicationDefaultConfiguration
eu.etaxonomy.cdm.io.common.CdmIoBase<STATE>
eu.etaxonomy.cdm.io.common.CdmImportBase<CONFIG,STATE>
eu.etaxonomy.cdm.io.common.DbImportBase<BerlinModelImportState,BerlinModelImportConfigurator>
eu.etaxonomy.cdm.io.berlinModel.in.BerlinModelImportBase
- All Implemented Interfaces:
- ICdmApplicationConfiguration, ICdmImport<BerlinModelImportConfigurator,BerlinModelImportState>, ICdmIO<BerlinModelImportState>, IIoObservable, IPartitionedIO<BerlinModelImportState>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
- BerlinModelAuthorImport, BerlinModelAuthorTeamImport, BerlinModelCommonNamesImport, BerlinModelFactsImport, BerlinModelGeneralImportValidator, BerlinModelNameFactsImport, BerlinModelNameStatusImport, BerlinModelOccurrenceImport, BerlinModelOccurrenceSourceImport, BerlinModelRefDetailImport, BerlinModelReferenceImport, BerlinModelTaxonImport, BerlinModelTaxonNameImport, BerlinModelTaxonNameRelationImport, BerlinModelTaxonRelationImport, BerlinModelTypesImport, BerlinModelUserImport, BerlinModelWebMarkerCategoryImport, BerlinModelWebMarkerImport
public abstract class BerlinModelImportBase
- extends DbImportBase<BerlinModelImportState,BerlinModelImportConfigurator>
- implements ICdmIO<BerlinModelImportState>, IPartitionedIO<BerlinModelImportState>
- Version:
- 1.0
- Author:
- a.mueller
Fields inherited from class eu.etaxonomy.cdm.io.common.CdmImportBase |
CREATE, IMAGE_GALLERY, READ_MEDIA_DATA, uuidUserDefinedAnnotationTypeVocabulary, uuidUserDefinedExtensionTypeVocabulary, uuidUserDefinedFeatureVocabulary, uuidUserDefinedMarkerTypeVocabulary, uuidUserDefinedMeasurementUnitVocabulary, uuidUserDefinedModifierVocabulary, uuidUserDefinedNamedAreaLevelVocabulary, uuidUserDefinedNamedAreaVocabulary, uuidUserDefinedRankVocabulary, uuidUserDefinedReferenceSystemVocabulary, uuidUserDefinedStateVocabulary, uuidUserDefinedStatisticalMeasureVocabulary, uuidUserDefinedTaxonRelationshipTypeVocabulary |
Fields inherited from interface eu.etaxonomy.cdm.io.common.ICdmIO |
FEATURE_STORE, NOMREF_DETAIL_STORE, NOMREF_STORE, PERSON_STORE, REF_DETAIL_STORE, REFERENCE_STORE, SPECIMEN_STORE, TAXON_STORE, TAXONNAME_STORE, TEAM_STORE, USER_STORE |
Method Summary |
protected boolean |
doCreatedUpdatedNotes(BerlinModelImportState state,
AnnotatableEntity annotatableEntity,
ResultSet rs)
|
protected boolean |
doCreatedUpdatedNotes(BerlinModelImportState state,
AnnotatableEntity annotatableEntity,
ResultSet rs,
boolean excludeUpdated)
|
protected boolean |
doIdCreatedUpdatedNotes(BerlinModelImportState state,
DescriptionElementBase descriptionElement,
ResultSet rs,
String id,
String namespace)
|
protected boolean |
doIdCreatedUpdatedNotes(BerlinModelImportState state,
IdentifiableEntity identifiableEntity,
ResultSet rs,
long id,
String namespace)
|
protected boolean |
doIdCreatedUpdatedNotes(BerlinModelImportState state,
IdentifiableEntity identifiableEntity,
ResultSet rs,
long id,
String namespace,
boolean excludeUpdated)
|
protected String |
getIdQuery(BerlinModelImportState state)
|
protected NamedArea |
getOtherAreas(BerlinModelImportState state,
String emCodeString,
String tdwgCodeString)
|
protected Reference |
getReferenceFromMaps(Map<String,Reference> firstDetailMap,
Map<String,Reference> secondDetailMap,
Map<String,Reference> firstRefMap,
Map<String,Reference> secondRefMap,
String nomRefDetailFk,
String nomRefFk)
Searches first in the detail maps then in the ref maps for a reference. |
protected Reference |
getReferenceOnlyFromMaps(Map<String,Reference> firstRefMap,
Map<String,Reference> secondRefMap,
String nomRefFk)
As getReferenceFromMaps but search is performed only on references, not on
detail maps. |
protected Taxon |
getTaxon(BerlinModelImportState state,
int taxonId,
Map<String,TaxonBase> taxonMap,
int factId)
|
Methods inherited from class eu.etaxonomy.cdm.io.common.DbImportBase |
checkSqlServerColumnExists, doId, doId, doInvoke, doLogPerLoop, doNotes, getPluralString, getRecordQuery, getTableName, getUser, getValueMap, handleForeignKey, loopNeedsHandling, resultSetHasColumn |
Methods inherited from class eu.etaxonomy.cdm.io.common.CdmImportBase |
addOriginalSource, addOriginalSource, fillMissingEpithets, fillMissingEpithetsForTaxa, getAcceptedTaxon, getAnnotationType, getExtensionType, getExtensionType, getFeature, getFeature, getFeaturePlaceholder, getImageMedia, getLanguage, getLanguage, getMarkerType, getMarkerType, getMarkerType, getMeasurementUnit, getModifier, getNamedArea, getNamedArea, getNamedAreaLevel, getPresenceTerm, getRank, getReferenceSystem, getSpecimenDescription, getSpecimenDescription, getStateTerm, getStateTerm, getStatisticalMeasure, getTaxonDescription, getTaxonDescription, getTaxonNameDescription, getTaxonNameDescription, getTaxonRelationshipType, getVocabulary, makeTree, makeTreeMemSave, NB, nullSafeDouble, nullSafeFloat, nullSafeInt |
Methods inherited from class eu.etaxonomy.cdm.io.common.CdmIoBase |
addObserver, addObservers, check, commitTransaction, countObservers, countSteps, doCheck, fire, fireProgressEvent, fireWarningEvent, fireWarningEvent, flush, getInstance, getObservers, getSuccessString, invoke, isBlank, isIgnore, isNotBlank, removeObserver, removeObservers, rollbackTransaction, startTransaction, startTransaction, updateProgress, updateProgress, warnProgress |
Methods inherited from class eu.etaxonomy.cdm.api.application.CdmApplicationDefaultConfiguration |
authenticate, getAgentService, getAuthenticationManager, getBean, getClassificationService, getCollectionService, getCommonService, getDatabaseService, getDescriptionService, getFeatureNodeService, getFeatureTreeService, getGrantedAuthorityService, getGroupService, getIdentificationKeyService, getLocationService, getMainService, getMediaService, getNameService, getOccurrenceService, getPermissionEvaluator, getPolytomousKeyNodeService, getPolytomousKeyService, getReferenceService, getTaxonNodeService, getTaxonService, getTermService, getTransactionManager, getUserService, getVocabularyService, getWorkingSetService, NewConversation, setApplicationContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BerlinModelImportBase
public BerlinModelImportBase(String tableName,
String pluralString)
getIdQuery
protected String getIdQuery(BerlinModelImportState state)
- Specified by:
getIdQuery
in class DbImportBase<BerlinModelImportState,BerlinModelImportConfigurator>
- Returns:
doIdCreatedUpdatedNotes
protected boolean doIdCreatedUpdatedNotes(BerlinModelImportState state,
DescriptionElementBase descriptionElement,
ResultSet rs,
String id,
String namespace)
throws SQLException
- Throws:
SQLException
doIdCreatedUpdatedNotes
protected boolean doIdCreatedUpdatedNotes(BerlinModelImportState state,
IdentifiableEntity identifiableEntity,
ResultSet rs,
long id,
String namespace,
boolean excludeUpdated)
throws SQLException
- Throws:
SQLException
doIdCreatedUpdatedNotes
protected boolean doIdCreatedUpdatedNotes(BerlinModelImportState state,
IdentifiableEntity identifiableEntity,
ResultSet rs,
long id,
String namespace)
throws SQLException
- Throws:
SQLException
doCreatedUpdatedNotes
protected boolean doCreatedUpdatedNotes(BerlinModelImportState state,
AnnotatableEntity annotatableEntity,
ResultSet rs)
throws SQLException
- Throws:
SQLException
doCreatedUpdatedNotes
protected boolean doCreatedUpdatedNotes(BerlinModelImportState state,
AnnotatableEntity annotatableEntity,
ResultSet rs,
boolean excludeUpdated)
throws SQLException
- Throws:
SQLException
getTaxon
protected Taxon getTaxon(BerlinModelImportState state,
int taxonId,
Map<String,TaxonBase> taxonMap,
int factId)
- Parameters:
state
- newTaxonId
- taxonMap
- factId
-
- Returns:
getReferenceFromMaps
protected Reference getReferenceFromMaps(Map<String,Reference> firstDetailMap,
Map<String,Reference> secondDetailMap,
Map<String,Reference> firstRefMap,
Map<String,Reference> secondRefMap,
String nomRefDetailFk,
String nomRefFk)
- Searches first in the detail maps then in the ref maps for a reference.
Returns the reference as soon as it finds it in one of the map, according
to the order of the map.
If nomRefDetailFk is
null
no search on detail maps is performed.
If one of the maps is null
no search on the according map is
performed.
You may define the order of search by the order you pass the maps but
make sure to always pass the detail maps first.
- Parameters:
firstDetailMap
- secondDetailMap
- firstRefMap
- secondRefMap
- nomRefDetailFk
- nomRefFk
-
- Returns:
getReferenceOnlyFromMaps
protected Reference getReferenceOnlyFromMaps(Map<String,Reference> firstRefMap,
Map<String,Reference> secondRefMap,
String nomRefFk)
- As getReferenceFromMaps but search is performed only on references, not on
detail maps.
- Parameters:
firstRefMap
- secondRefMap
- nomRefFk
-
- Returns:
getOtherAreas
protected NamedArea getOtherAreas(BerlinModelImportState state,
String emCodeString,
String tdwgCodeString)
Copyright © 2007-2013 EDIT. All Rights Reserved.