eu.etaxonomy.cdm.io.berlinModel.in
Class BerlinModelNameFactsImport

java.lang.Object
  extended by eu.etaxonomy.cdm.api.application.CdmApplicationDefaultConfiguration
      extended by eu.etaxonomy.cdm.io.common.CdmIoBase<STATE>
          extended by eu.etaxonomy.cdm.io.common.CdmImportBase<CONFIG,STATE>
              extended by eu.etaxonomy.cdm.io.common.DbImportBase<BerlinModelImportState,BerlinModelImportConfigurator>
                  extended by eu.etaxonomy.cdm.io.berlinModel.in.BerlinModelImportBase
                      extended by eu.etaxonomy.cdm.io.berlinModel.in.BerlinModelNameFactsImport
All Implemented Interfaces:
ICdmApplicationConfiguration, ICdmImport<BerlinModelImportConfigurator,BerlinModelImportState>, ICdmIO<BerlinModelImportState>, IIoObservable, IPartitionedIO<BerlinModelImportState>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Component
public class BerlinModelNameFactsImport
extends BerlinModelImportBase

Version:
1.0
Author:
a.mueller

Nested Class Summary
 
Nested classes/interfaces inherited from class eu.etaxonomy.cdm.io.common.CdmImportBase
CdmImportBase.TermMatchMode
 
Field Summary
static String NAMESPACE
           
 
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 class eu.etaxonomy.cdm.io.common.CdmIoBase
ioName
 
Fields inherited from class eu.etaxonomy.cdm.api.application.CdmApplicationDefaultConfiguration
applicationContext
 
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
 
Fields inherited from interface eu.etaxonomy.cdm.io.common.IPartitionedIO
ID_LIST_TOKEN
 
Constructor Summary
BerlinModelNameFactsImport()
           
 
Method Summary
protected  boolean doCheck(BerlinModelImportState state)
           
 boolean doPartition(ResultSetPartitioner partitioner, BerlinModelImportState state)
           
protected  String getIdQuery(BerlinModelImportState state)
           
 Media getMedia(String nameFact, URL mediaUrl, File mediaPath)
           
protected  String getRecordQuery(BerlinModelImportConfigurator config)
           
 Map<Object,Map<String,? extends CdmBase>> getRelatedObjectsForPartition(ResultSet rs)
           
protected  boolean isIgnore(BerlinModelImportState state)
          Returns true if this (IO-)class should be ignored during the import/export process.
static void main(String[] args)
           
 
Methods inherited from class eu.etaxonomy.cdm.io.berlinModel.in.BerlinModelImportBase
doCreatedUpdatedNotes, doCreatedUpdatedNotes, doIdCreatedUpdatedNotes, doIdCreatedUpdatedNotes, doIdCreatedUpdatedNotes, getOtherAreas, getReferenceFromMaps, getReferenceOnlyFromMaps, getTaxon
 
Methods inherited from class eu.etaxonomy.cdm.io.common.DbImportBase
checkSqlServerColumnExists, doId, doId, doInvoke, doLogPerLoop, doNotes, getPluralString, 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, fire, fireProgressEvent, fireWarningEvent, fireWarningEvent, flush, getInstance, getObservers, getSuccessString, invoke, isBlank, 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
 
Methods inherited from interface eu.etaxonomy.cdm.io.common.ICdmIO
check, fire, invoke, updateProgress, updateProgress, warnProgress
 
Methods inherited from interface eu.etaxonomy.cdm.io.common.IIoObservable
addObserver, addObservers, countObservers, getObservers, removeObserver, removeObservers
 
Methods inherited from interface eu.etaxonomy.cdm.io.common.IPartitionedIO
commitTransaction, getPluralString, getReferenceService, startTransaction
 

Field Detail

NAMESPACE

public static final String NAMESPACE
See Also:
Constant Field Values
Constructor Detail

BerlinModelNameFactsImport

public BerlinModelNameFactsImport()
Method Detail

getIdQuery

protected String getIdQuery(BerlinModelImportState state)
Overrides:
getIdQuery in class BerlinModelImportBase
Returns:

getRecordQuery

protected String getRecordQuery(BerlinModelImportConfigurator config)
Specified by:
getRecordQuery in class DbImportBase<BerlinModelImportState,BerlinModelImportConfigurator>
Returns:

doPartition

public boolean doPartition(ResultSetPartitioner partitioner,
                           BerlinModelImportState state)

getRelatedObjectsForPartition

public Map<Object,Map<String,? extends CdmBase>> getRelatedObjectsForPartition(ResultSet rs)
Returns:

getMedia

public Media getMedia(String nameFact,
                      URL mediaUrl,
                      File mediaPath)

doCheck

protected boolean doCheck(BerlinModelImportState state)
Specified by:
doCheck in class CdmIoBase<BerlinModelImportState>

isIgnore

protected boolean isIgnore(BerlinModelImportState state)
Description copied from class: CdmIoBase
Returns true if this (IO-)class should be ignored during the import/export process. This information is usually stored in the configuration

Specified by:
isIgnore in class CdmIoBase<BerlinModelImportState>
Returns:

main

public static void main(String[] args)


Copyright © 2007-2013 EDIT. All Rights Reserved.