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.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
asOfTime, existingDB, xtdb
-
Constructor Summary
ConstructorDescriptionGetRelationship
(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 Relationship
byRef
(XTDBOMRSRepositoryConnector xtdb, xtdb.api.IXtdbDatasource db, String ref) Translate the provided XTDB document reference into an Egeria relationship.execute()
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
Retrieve the requested relationship from the XTDB repository.- Returns:
- Relationship as it existed at the specified point in time
- Throws:
RepositoryErrorException
- if any issue closing an open XTDB resource
-
byRef
public static 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
-