public class InMemoryMapping extends java.lang.Object implements IImportMapping
IImportMapping.CdmKey<CLASS extends IdentifiableEntity>, IImportMapping.MappingType
Constructor and Description |
---|
InMemoryMapping() |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(java.lang.String namespace,
java.lang.String sourceKey,
java.lang.Class<?> destinationClass)
Checks if a mapping exists for a given namespaced identifier.
|
void |
finish() |
java.util.Set<IImportMapping.CdmKey> |
get(java.lang.String namespace,
java.lang.String sourceKey)
Retrieve the CdmKey set for the given namespaced identifier.
|
java.util.List<MappingEntry<java.lang.String,java.lang.String,java.lang.Class,java.lang.Integer>> |
getEntryList()
Returns a list for all mapping entries.
|
InMemoryMapping |
getPartialMapping(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> namespacedSourceKeys)
Returns the mapping for only those obejcts addressed by the namespacedSourceKeys parameter
|
void |
putMapping(java.lang.String namespace,
java.lang.Integer sourceKey,
IdentifiableEntity destinationObject)
Put the destination object with for the given namespaced identifier into the mapping.
|
void |
putMapping(java.lang.String namespace,
java.lang.String sourceKey,
IdentifiableEntity destinationObject)
Put the destination object with for the given namespaced identifier into the mapping.
|
void |
putMapping(java.lang.String namespace,
java.lang.String sourceKey,
IImportMapping.CdmKey<IdentifiableEntity<?>> cdmKey) |
boolean |
writeToDbMapping(DatabaseMapping dbMapping) |
public void putMapping(java.lang.String namespace, java.lang.Integer sourceKey, IdentifiableEntity destinationObject)
IImportMapping
putMapping
in interface IImportMapping
IImportMapping.putMapping(String, String, IdentifiableEntity)
public void putMapping(java.lang.String namespace, java.lang.String sourceKey, IdentifiableEntity destinationObject)
IImportMapping
putMapping
in interface IImportMapping
public void putMapping(java.lang.String namespace, java.lang.String sourceKey, IImportMapping.CdmKey<IdentifiableEntity<?>> cdmKey)
public java.util.Set<IImportMapping.CdmKey> get(java.lang.String namespace, java.lang.String sourceKey)
IImportMapping
get
in interface IImportMapping
public boolean exists(java.lang.String namespace, java.lang.String sourceKey, java.lang.Class<?> destinationClass)
IImportMapping
null
the mapping is limited to
result objects of the given class or a subclass of the given class.exists
in interface IImportMapping
public InMemoryMapping getPartialMapping(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> namespacedSourceKeys)
IImportMapping
getPartialMapping
in interface IImportMapping
public java.util.List<MappingEntry<java.lang.String,java.lang.String,java.lang.Class,java.lang.Integer>> getEntryList()
public boolean writeToDbMapping(DatabaseMapping dbMapping)
public void finish()
finish
in interface IImportMapping
Copyright © 2007-2017 EDIT. All Rights Reserved.