public class AttributeMappingRepositoryImpl extends Object implements AttributeMappingRepository
| Constructor and Description |
|---|
AttributeMappingRepositoryImpl(DataService dataService,
AttributeMappingMetaData attributeMappingMetaData) |
| Modifier and Type | Method and Description |
|---|---|
List<AttributeMapping> |
getAttributeMappings(List<Entity> attributeMappingEntities,
EntityType sourceEntityType,
EntityType targetEntityType)
Creates a list of fully reconstructed
AttributeMappings. |
List<Attribute> |
retrieveAttributesFromAlgorithm(String algorithm,
EntityType sourceEntityType)
Translates an algorithm to a list of
Attribute based on the algorithm, and the
EntityType of the source entity |
List<Entity> |
upsert(Collection<AttributeMapping> attributeMappings)
Inserts or updates a
Collection of AttributeMapping. |
public AttributeMappingRepositoryImpl(DataService dataService, AttributeMappingMetaData attributeMappingMetaData)
public List<Entity> upsert(Collection<AttributeMapping> attributeMappings)
AttributeMappingRepositoryCollection of AttributeMapping. Will generate IDs if they are not yet
specified.upsert in interface AttributeMappingRepositorypublic List<AttributeMapping> getAttributeMappings(List<Entity> attributeMappingEntities, EntityType sourceEntityType, EntityType targetEntityType)
AttributeMappingRepositoryAttributeMappings.getAttributeMappings in interface AttributeMappingRepositoryattributeMappingEntities - List of Entitys with AttributeMappingMetaData metadatasourceEntityType - EntityType of the source entity of the attribute mapping, used to look up the
AttributetargetEntityType - EntityType of the target entity of the attribute mapping, used to look up the
AttributeAttributeMappings.public List<Attribute> retrieveAttributesFromAlgorithm(String algorithm, EntityType sourceEntityType)
AttributeMappingRepositoryAttribute based on the algorithm, and the
EntityType of the source entityretrieveAttributesFromAlgorithm in interface AttributeMappingRepositoryAttributeCopyright © 2018 Pivotal Software, Inc.. All rights reserved.