public class RelationshipMappingStore extends Object
| Constructor and Description |
|---|
RelationshipMappingStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMapping(TypeDef omrsTypeDef,
Class mappingClass)
Adds a relationship mapping for the provided TypeDef, using the provided Java class for the mapping.
|
RelationshipMapping |
getMappingByOmrsTypeGUID(String guid)
Retrieves the relationship mapping for the provided TypeDef GUID.
|
RelationshipMapping |
getMappingByOmrsTypeName(String name)
Retrieves the relationship mapping for the provided TypeDef name.
|
RelationshipMapping |
getMappingByTypes(String omrsRelationshipType,
String proxyOneType,
String proxyTwoType)
Retrieves a RelationshipMapping by OMRS relationship type from those that are listed as implemented.
|
List<TypeDef> |
getTypeDefs()
Retrieves the listing of all TypeDefs for which relationship mappings are implemented.
|
public List<TypeDef> getTypeDefs()
List<TypeDef>public boolean addMapping(TypeDef omrsTypeDef, Class mappingClass)
omrsTypeDef - the OMRS TypeDefmappingClass - the RelationshipMapping Java classpublic RelationshipMapping getMappingByOmrsTypeGUID(String guid)
guid - of the OMRS type definitionpublic RelationshipMapping getMappingByOmrsTypeName(String name)
name - of the OMRS type definitionpublic RelationshipMapping getMappingByTypes(String omrsRelationshipType, String proxyOneType, String proxyTwoType)
omrsRelationshipType - the name of the OMRS relationship type for which to retrieve a mappingproxyOneType - the IGC asset type of the first end of the relationshipproxyTwoType - the IGC asset type of the second end of the relationshipCopyright © 2018–2019 ODPi. All rights reserved.