Class GetRelationship


  • public class GetRelationship
    extends AbstractReadOperation
    Base class to retrieve relationship information.
    • Constructor Detail

      • GetRelationship

        public GetRelationship​(XtdbOMRSRepositoryConnector xtdb,
                               String guid,
                               Date asOfTime)
        Default constructor ensures that a consistent datasource is created and used for the entirety of the operation, and further ensures it is fully-closed afterwards irrespective of any exceptions.
        Parameters:
        xtdb - connectivity to XTDB
        guid - of the relationship to retrieve
        asOfTime - (optional) validity time for which to open the datasource
    • Method Detail

      • execute

        public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship execute()
                                                                                                                                     throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
        Retrieve the requested relationship from the XTDB repository.
        Returns:
        Relationship as it existed at the specified point in time
        Throws:
        org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing an open XTDB resource
      • byRef

        public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship byRef​(XtdbOMRSRepositoryConnector xtdb,
                                                                                                                                                 xtdb.api.IXtdbDatasource db,
                                                                                                                                                 String ref)
        Translate the provided XTDB document reference into an Egeria relationship.
        Parameters:
        xtdb - connectivity to XTDB
        db - from which to retrieve the details
        ref - reference to the relationship document
        Returns:
        Relationship