public class DatabaseMapping extends java.lang.Object implements IImportMapping
IImportMapping.CdmKey<CLASS extends IdentifiableEntity>, IImportMapping.MappingType
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
TABLE_IMPORT_MAPPING |
Constructor and Description |
---|
DatabaseMapping(java.lang.String mappingId) |
DatabaseMapping(java.lang.String mappingId,
java.lang.String file) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(java.lang.String sourceNamespace,
java.lang.String sourceId,
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 sourceNamespace,
java.lang.String sourceId)
Retrieve the CdmKey set for the given namespaced identifier.
|
ICdmDataSource |
getDatabase() |
ICdmDataSource |
getDatabase(java.lang.String path) |
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) |
int |
size() |
protected static final java.lang.String TABLE_IMPORT_MAPPING
public DatabaseMapping(java.lang.String mappingId)
public DatabaseMapping(java.lang.String mappingId, java.lang.String file)
database
- 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 int size() throws java.sql.SQLException
java.sql.SQLException
public java.util.Set<IImportMapping.CdmKey> get(java.lang.String sourceNamespace, java.lang.String sourceId)
IImportMapping
get
in interface IImportMapping
public boolean exists(java.lang.String sourceNamespace, java.lang.String sourceId, 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 void finish()
finish
in interface IImportMapping
public ICdmDataSource getDatabase()
public ICdmDataSource getDatabase(java.lang.String path)
Copyright © 2007-2020 EDIT. All Rights Reserved.