Class GetRelationship
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.GetRelationship
Base class to retrieve relationship information.
-
Constructor Summary
ConstructorsConstructorDescriptionGetRelationship(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. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.RelationshipbyRef(XTDBOMRSRepositoryConnector xtdb, xtdb.api.IXtdbDatasource db, String ref) Translate the provided XTDB document reference into an Egeria relationship.org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationshipexecute()Retrieve the requested relationship from the XTDB repository.Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
getXtdbObjectByReference
-
Constructor Details
-
GetRelationship
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 XTDBguid- of the relationship to retrieveasOfTime- (optional) validity time for which to open the datasource
-
-
Method Details
-
execute
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship execute() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorExceptionRetrieve 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 XTDBdb- from which to retrieve the detailsref- reference to the relationship document- Returns:
- Relationship
-