public abstract class ExcelImporterBase<STATE extends ExcelImportState<? extends ExcelImportConfiguratorBase,? extends ExcelRowBase>> extends CdmImportBase<ExcelImportConfiguratorBase,STATE>
CdmImportBase.TermMatchMode
Modifier and Type | Field and Description |
---|---|
protected static String |
SCIENTIFIC_NAME_COLUMN |
CREATE, IMAGE_GALLERY, READ_MEDIA_DATA, uuidUserDefinedAnnotationTypeVocabulary, uuidUserDefinedExtensionTypeVocabulary, uuidUserDefinedFeatureVocabulary, uuidUserDefinedIdentifierTypeVocabulary, uuidUserDefinedKindOfUnitVocabulary, uuidUserDefinedMarkerTypeVocabulary, uuidUserDefinedMeasurementUnitVocabulary, uuidUserDefinedModifierVocabulary, uuidUserDefinedNamedAreaLevelVocabulary, uuidUserDefinedNamedAreaVocabulary, uuidUserDefinedPresenceAbsenceVocabulary, uuidUserDefinedRankVocabulary, uuidUserDefinedReferenceSystemVocabulary, uuidUserDefinedStateVocabulary, uuidUserDefinedStatisticalMeasureVocabulary, uuidUserDefinedTaxonRelationshipTypeVocabulary
applicationContext
FEATURE_STORE, NOMREF_STORE, REFERENCE_STORE, SPECIMEN_STORE, TAXON_STORE, TAXONNAME_STORE, TEAM_STORE
Constructor and Description |
---|
ExcelImporterBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
analyzeRecord(HashMap<String,String> record,
STATE state) |
protected boolean |
doCheck(STATE state) |
protected void |
doInvoke(STATE state)
Reads data from an Excel file and stores them into a CDM DB.
|
protected abstract void |
firstPass(STATE state) |
protected String |
floatString2IntStringValue(String value) |
protected int |
floatString2IntValue(String value) |
ExcelImportConfiguratorBase |
getConfigurator() |
protected TimePeriod |
getTimePeriod(String start,
String end) |
protected String |
getValue(Map<String,String> record,
String originalKey)
Returns the value of the record map for the given key.
|
protected String |
getWorksheetName()
To define a worksheet name override this method.
|
protected boolean |
needsNomenclaturalCode() |
protected abstract void |
secondPass(STATE state) |
addOriginalSource, addOriginalSource, fillMissingEpithets, fillMissingEpithetsForTaxa, getAcceptedTaxon, getAnnotationType, getByteArray, getDefaultResult, getDefaultTaxonDescription, getExtensionType, getExtensionType, getFeature, getFeature, getFeaturePlaceholder, getIdentiferType, getImageMedia, getImageMedia, getKindOfUnit, getLanguage, getLanguage, getMarkedTaxonDescription, getMarkerType, getMarkerType, getMarkerType, getMarkerType, getMeasurementUnit, getModifier, getNamedArea, getNamedArea, getNamedArea, getNamedAreaLevel, getNoDataResult, getPresenceTerm, getPresenceTerm, getRank, getReferenceSystem, getSpecimenDescription, getSpecimenDescription, getStateTerm, getStateTerm, getStatisticalMeasure, getTaxonDescription, getTaxonDescription, getTaxonNameDescription, getTaxonNameDescription, getTaxonRelationshipType, getVocabulary, makeTree, makeTreeMemSave, NB, nullSafeBoolean, nullSafeDouble, nullSafeFloat, nullSafeInt, parseAuthorString
addObserver, addObservers, check, commitTransaction, countObservers, countSteps, fire, fireProgressEvent, fireWarningEvent, fireWarningEvent, flush, getInstance, getObservers, getSuccessString, invoke, isBlank, isIgnore, isNotBlank, removeObserver, removeObservers, rollbackTransaction, startTransaction, startTransaction, updateProgress, updateProgress, warnProgress
authenticate, getAgentService, getAmplificationService, getAnnotationService, getAuthenticationManager, getBean, getClassificationService, getCollectionService, getCommonService, getDatabaseService, getDescriptionService, getEntityConstraintViolationService, getEntityValidationService, getEventBaseService, getFeatureNodeService, getFeatureTreeService, getGrantedAuthorityService, getGroupService, getIdentificationKeyService, getLocationService, getMainService, getMediaService, getMetadataService, getNameService, getOccurrenceService, getPermissionEvaluator, getPolytomousKeyNodeService, getPolytomousKeyService, getPreferenceService, getPrimerService, getProgressMonitorService, getReferenceService, getRegistrationService, getRightsService, getSequenceService, getSession, getSessionFactory, getTaxonNodeService, getTaxonService, getTermService, getTransactionManager, getUserService, getVocabularyService, getWorkingSetService, NewConversation, setApplicationContext, setDataSource, setSessionFactory, setTransactionManager
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invoke
check, countSteps, fire, updateProgress, updateProgress, warnProgress
addObserver, addObservers, countObservers, getObservers, removeObserver, removeObservers
protected static final String SCIENTIFIC_NAME_COLUMN
protected void doInvoke(STATE state)
doInvoke
in class CdmIoBase<STATE extends ExcelImportState<? extends ExcelImportConfiguratorBase,? extends ExcelRowBase>,ImportResult>
config
- stores
- (not used)protected boolean needsNomenclaturalCode()
protected String getWorksheetName()
null if not worksheet is defined.
protected boolean doCheck(STATE state)
doCheck
in class CdmIoBase<STATE extends ExcelImportState<? extends ExcelImportConfiguratorBase,? extends ExcelRowBase>,ImportResult>
protected abstract void analyzeRecord(HashMap<String,String> record, STATE state)
record
- protected abstract void firstPass(STATE state)
protected abstract void secondPass(STATE state)
public ExcelImportConfiguratorBase getConfigurator()
protected int floatString2IntValue(String value)
protected TimePeriod getTimePeriod(String start, String end)
start
- end
- Copyright © 2007-2017 EDIT. All Rights Reserved.