Class RelationshipMapping
- java.lang.Object
-
- org.odpi.openmetadata.connector.sas.repository.connector.mapping.RelationshipMapping
-
public class RelationshipMapping extends java.lang.ObjectThe base class for all mappings between OMRS Relationship instances and SAS relationship instances.
-
-
Constructor Summary
Constructors Constructor Description RelationshipMapping(RepositoryConnector SASRepositoryConnector, TypeDefStore typeDefStore, AttributeTypeDefStore attributeDefStore, SASCatalogGuid sasCatalogGuid, SASCatalogObject relationship, java.lang.String userId)Mapping itself must be initialized with various objects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxygetEntityProxyForObject(RepositoryConnector SASRepositoryConnector, TypeDefStore typeDefStore, SASCatalogObject SASObj, java.lang.String entityPrefix, java.lang.String userId)Retrieves an EntityProxy object for the provided SAS object.org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.RelationshipgetRelationship()Retrieve the mapped OMRS Relationship from the SAS relationship used to construct this mapping object.static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.RelationshipgetSelfReferencingRelationship(RepositoryConnector SASRepositoryConnector, TypeDefStore typeDefStore, SASCatalogGuid relationshipGUID, SASCatalogObject entity)Setup a self-referencing relationship using the provided prefix and SAS entity.
-
-
-
Constructor Detail
-
RelationshipMapping
public RelationshipMapping(RepositoryConnector SASRepositoryConnector, TypeDefStore typeDefStore, AttributeTypeDefStore attributeDefStore, SASCatalogGuid sasCatalogGuid, SASCatalogObject relationship, java.lang.String userId)
Mapping itself must be initialized with various objects.- Parameters:
SASRepositoryConnector- connectivity to an SAS repositorytypeDefStore- the store of mapped TypeDefs for the SAS repositoryattributeDefStore- the store of mapped AttributeTypeDefs for the SAS repositorysasCatalogGuid- the GUID that was used to retrieve this relationshiprelationship- the SAS relationship to be mappeduserId- the user through which to do the mapping
-
-
Method Detail
-
getRelationship
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship getRelationship() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorExceptionRetrieve the mapped OMRS Relationship from the SAS relationship used to construct this mapping object.- Returns:
- Relationship
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- when unable to retrieve the Relationship
-
getSelfReferencingRelationship
public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship getSelfReferencingRelationship(RepositoryConnector SASRepositoryConnector, TypeDefStore typeDefStore, SASCatalogGuid relationshipGUID, SASCatalogObject entity) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
Setup a self-referencing relationship using the provided prefix and SAS entity.- Parameters:
SASRepositoryConnector- connectivity to a SAS environmenttypeDefStore- store of TypeDef mappingsrelationshipGUID- the GUID of the relationshipentity- the entity for which the self-referencing relationship should be generated- Returns:
- Relationship
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- when unable to map the Relationship
-
getEntityProxyForObject
public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy getEntityProxyForObject(RepositoryConnector SASRepositoryConnector, TypeDefStore typeDefStore, SASCatalogObject SASObj, java.lang.String entityPrefix, java.lang.String userId)
Retrieves an EntityProxy object for the provided SAS object.- Parameters:
SASRepositoryConnector- OMRS connector to the SAS repositorytypeDefStore- store of mapped TypeDefsSASObj- the SAS object for which to retrieve an EntityProxyentityPrefix- the prefix used for the entity, if it is a generated entity (null if not generated)userId- the user through which to retrieve the EntityProxy (unused)- Returns:
- EntityProxy
-
-