eu.etaxonomy.cdm.io.dwca.in
Class DwcaImportState

java.lang.Object
  extended by eu.etaxonomy.cdm.io.common.IoStateBase<CONFIG,IO>
      extended by eu.etaxonomy.cdm.io.common.ImportStateBase<DwcaImportConfigurator,DwcaImport>
          extended by eu.etaxonomy.cdm.io.dwca.in.DwcaImportState

public class DwcaImportState
extends ImportStateBase<DwcaImportConfigurator,DwcaImport>

Author:
a.mueller

Field Summary
 
Fields inherited from class eu.etaxonomy.cdm.io.common.ImportStateBase
service, stores
 
Constructor Summary
DwcaImportState(DwcaImportConfigurator config)
           
 
Method Summary
 void addRelatedObject(String sourceNamespace, String sourceKey, IdentifiableEntity<?> cdmEntity)
           
 boolean exists(String namespace, String sourceKey, Class<?> destinationClass)
           
 void finish()
           
 List<IdentifiableEntity> get(String namespace, String sourceKey)
           
<CLASS extends IdentifiableEntity>
List<CLASS>
get(String namespace, String sourceKey, Class<CLASS> destinationClass)
           
 IImportMapping getMapping()
           
 Reference<?> getTransactionalSourceReference()
          Returns the source reference object that is attached to the current transaction.
 boolean isTaxaCreated()
          True, if taxa have been fully created.
 void loadRelatedObjects(InMemoryMapping mapping)
           
 void putMapping(MappedCdmBase mappedCdmBase)
           
 void putMapping(String namespace, Integer sourceKey, IdentifiableEntity<?> destinationObject)
           
 void putMapping(String namespace, String sourceKey, IdentifiableEntity<?> destinationObject)
           
 void setTaxaCreated(boolean taxaCreated)
           
 void unloadPartitionStore(Map<String,Map<String,IdentifiableEntity>> partitionStore)
           
 
Methods inherited from class eu.etaxonomy.cdm.io.common.ImportStateBase
countTrees, countTreeUuids, getAnnotationType, getExtensionType, getFeature, getLanguage, getMarkerType, getMeasurementUnit, getModifier, getNamedArea, getNamedAreaLevel, getPresenceTerm, getRank, getReferenceSystem, getStateTerm, getStatisticalMeasure, getStore, getStores, getTaxonRelationshipType, getTransformer, getTree, getTreeUuid, getTreeUuidByIntTreeKey, getTreeUuidByTreeKey, isCheck, putAnnotationType, putClassificationUuid, putClassificationUuidInt, putExtensionType, putFeature, putLanguage, putMarkerType, putMeasurementUnit, putModifier, putNamedArea, putNamedAreaLevel, putPresenceTerm, putRank, putReferenceSystem, putStateTerm, putStatisticalMeasure, putTaxonRelationshipType, putTree, putTreeUuid, setCheck, setStores, setTransformer
 
Methods inherited from class eu.etaxonomy.cdm.io.common.IoStateBase
getConfig, getCurrentIO, initialize, isSuccess, setConfig, setCurrentIO, setSuccess, setUnsuccessfull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DwcaImportState

public DwcaImportState(DwcaImportConfigurator config)
Method Detail

isTaxaCreated

public boolean isTaxaCreated()
True, if taxa have been fully created.

Returns:

setTaxaCreated

public void setTaxaCreated(boolean taxaCreated)
Parameters:
taxaCreated - the taxaCreated to set

finish

public void finish()

putMapping

public void putMapping(MappedCdmBase mappedCdmBase)
                throws IllegalArgumentException
Throws:
IllegalArgumentException

putMapping

public void putMapping(String namespace,
                       Integer sourceKey,
                       IdentifiableEntity<?> destinationObject)

putMapping

public void putMapping(String namespace,
                       String sourceKey,
                       IdentifiableEntity<?> destinationObject)

get

public List<IdentifiableEntity> get(String namespace,
                                    String sourceKey)

get

public <CLASS extends IdentifiableEntity> List<CLASS> get(String namespace,
                                                          String sourceKey,
                                                          Class<CLASS> destinationClass)

exists

public boolean exists(String namespace,
                      String sourceKey,
                      Class<?> destinationClass)

loadRelatedObjects

public void loadRelatedObjects(InMemoryMapping mapping)

addRelatedObject

public void addRelatedObject(String sourceNamespace,
                             String sourceKey,
                             IdentifiableEntity<?> cdmEntity)

unloadPartitionStore

public void unloadPartitionStore(Map<String,Map<String,IdentifiableEntity>> partitionStore)

getMapping

public IImportMapping getMapping()

getTransactionalSourceReference

public Reference<?> getTransactionalSourceReference()
Returns the source reference object that is attached to the current transaction.

Returns:


Copyright © 2007-2013 EDIT. All Rights Reserved.