eu.etaxonomy.cdm.io.dwca.in
Interface IImportMapping

All Known Implementing Classes:
DatabaseMapping, InMemoryMapping

public interface IImportMapping

Author:
a.mueller

Nested Class Summary
static class IImportMapping.CdmKey<CLASS extends IdentifiableEntity>
           
static class IImportMapping.MappingType
           
 
Method Summary
 boolean exists(String namespace, String sourceKey, Class<?> destinationClass)
          Checks if a mapping exists for a given namespaced identifier.
 void finish()
           
 Set<IImportMapping.CdmKey> get(String namespace, String sourceKey)
          Retrieve the CdmKey set for the given namespaced identifier.
 InMemoryMapping getPartialMapping(Map<String,Set<String>> namespacedSourceKeys)
          Returns the mapping for only those obejcts addressed by the namespacedSourceKeys parameter
 void putMapping(String namespace, Integer sourceKey, IdentifiableEntity destinationObject)
          Put the destination object with for the given namespaced identifier into the mapping.
 void putMapping(String namespace, String sourceKey, IdentifiableEntity destinationObject)
          Put the destination object with for the given namespaced identifier into the mapping.
 

Method Detail

putMapping

void putMapping(String namespace,
                String sourceKey,
                IdentifiableEntity destinationObject)
Put the destination object with for the given namespaced identifier into the mapping.

Parameters:
namespace -
sourceKey -
destinationObject -

putMapping

void putMapping(String namespace,
                Integer sourceKey,
                IdentifiableEntity destinationObject)
Put the destination object with for the given namespaced identifier into the mapping.

Parameters:
namespace -
sourceKey -
destinationObject -
See Also:
putMapping(String, String, IdentifiableEntity)

get

Set<IImportMapping.CdmKey> get(String namespace,
                               String sourceKey)
Retrieve the CdmKey set for the given namespaced identifier.

Parameters:
namespace -
sourceKey -
Returns:

exists

boolean exists(String namespace,
               String sourceKey,
               Class<?> destinationClass)
Checks if a mapping exists for a given namespaced identifier. If destinationClass is not null the mapping is limited to result objects of the given class or a subclass of the given class.

Parameters:
namespace -
sourceKey -
destinationClass -
Returns:

getPartialMapping

InMemoryMapping getPartialMapping(Map<String,Set<String>> namespacedSourceKeys)
Returns the mapping for only those obejcts addressed by the namespacedSourceKeys parameter

Parameters:
namespacedKeys -
Returns:

finish

void finish()


Copyright © 2007-2013 EDIT. All Rights Reserved.