Class GetRelationship
- java.lang.Object
-
- org.odpi.egeria.connectors.juxt.xtdb.readops.AbstractReadOperation
-
- org.odpi.egeria.connectors.juxt.xtdb.readops.GetRelationship
-
public class GetRelationship extends AbstractReadOperation
Base class to retrieve relationship information.
-
-
Field Summary
-
Fields inherited from class org.odpi.egeria.connectors.juxt.xtdb.readops.AbstractReadOperation
asOfTime, existingDB, xtdb
-
-
Constructor Summary
Constructors Constructor Description 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.
-
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.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.egeria.connectors.juxt.xtdb.readops.AbstractReadOperation
getXtdbObjectByReference
-
-
-
-
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 XTDBguid- of the relationship to retrieveasOfTime- (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.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
-
-