Class GetEntity
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.GetEntity
Base class to retrieve entity information.
-
Constructor Summary
ConstructorsConstructorDescriptionGetEntity(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 TypeMethodDescriptionorg.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetailasDetail()Retrieve the requested entity as a detailed object from the XTDB repository.org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxyasProxy()Retrieve the requested entity as a proxy from the XTDB repository.org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummaryRetrieve the requested entity as a summary from the XTDB repository.static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetaildetailByGuid(XTDBOMRSRepositoryConnector xtdb, xtdb.api.IXtdbDatasource db, String guid) Translate the provided Egeria unique identifier into an Egeria entity.static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetaildetailByRef(XTDBOMRSRepositoryConnector xtdb, xtdb.api.IXtdbDatasource db, String ref) Translate the provided XTDB document reference into an Egeria entity.static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxyproxyByGuid(XTDBOMRSRepositoryConnector xtdb, xtdb.api.IXtdbDatasource db, String guid) Translate the provided Egeria unique identifier into an Egeria entity.static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxyproxyByRef(XTDBOMRSRepositoryConnector xtdb, xtdb.api.IXtdbDatasource db, String ref) Translate the provided XTDB document reference into an Egeria entity.static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummarysummaryByGuid(XTDBOMRSRepositoryConnector xtdb, xtdb.api.IXtdbDatasource db, String guid) Translate the provided Egeria unique identifier into an Egeria entity.static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummarysummaryByRef(XTDBOMRSRepositoryConnector xtdb, xtdb.api.IXtdbDatasource db, String ref) Translate the provided XTDB document reference into an Egeria entity.Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
getXtdbObjectByReference
-
Constructor Details
-
GetEntity
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 entity to retrieveasOfTime- (optional) validity time for which to open the datasource
-
-
Method Details
-
asSummary
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary asSummary() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorExceptionRetrieve the requested entity as a summary from the XTDB repository.- Returns:
- EntitySummary 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
-
asProxy
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy asProxy() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorExceptionRetrieve the requested entity as a proxy from the XTDB repository.- Returns:
- EntityProxy 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
-
asDetail
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail asDetail() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityProxyOnlyExceptionRetrieve the requested entity as a detailed object from the XTDB repository.- Returns:
- EntityDetail as it existed at the specified point in time
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- if any issues closing an open XTDB resourceorg.odpi.openmetadata.repositoryservices.ffdc.exception.EntityProxyOnlyException- if the retrieved entity is only a proxy
-
summaryByGuid
public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary summaryByGuid(XTDBOMRSRepositoryConnector xtdb, xtdb.api.IXtdbDatasource db, String guid) Translate the provided Egeria unique identifier into an Egeria entity.- Parameters:
xtdb- connectivity to XTDBdb- from which to retrieve the detailsguid- unique identifier of the Egeria entity- Returns:
- EntitySummary
-
summaryByRef
public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary summaryByRef(XTDBOMRSRepositoryConnector xtdb, xtdb.api.IXtdbDatasource db, String ref) Translate the provided XTDB document reference into an Egeria entity.- Parameters:
xtdb- connectivity to XTDBdb- from which to retrieve the detailsref- internal XTDB reference to the entity document- Returns:
- EntitySummary
-
proxyByGuid
public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy proxyByGuid(XTDBOMRSRepositoryConnector xtdb, xtdb.api.IXtdbDatasource db, String guid) Translate the provided Egeria unique identifier into an Egeria entity.- Parameters:
xtdb- connectivity to XTDBdb- from which to retrieve the detailsguid- unique identifier of the Egeria entity- Returns:
- EntityProxy
-
proxyByRef
public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy proxyByRef(XTDBOMRSRepositoryConnector xtdb, xtdb.api.IXtdbDatasource db, String ref) Translate the provided XTDB document reference into an Egeria entity.- Parameters:
xtdb- connectivity to XTDBdb- from which to retrieve the detailsref- internal XTDB reference to the entity document- Returns:
- EntityProxy
-
detailByGuid
public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail detailByGuid(XTDBOMRSRepositoryConnector xtdb, xtdb.api.IXtdbDatasource db, String guid) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityProxyOnlyException Translate the provided Egeria unique identifier into an Egeria entity.- Parameters:
xtdb- connectivity to XTDBdb- from which to retrieve the detailsguid- unique identifier of the Egeria entity- Returns:
- EntityDetail
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityProxyOnlyException- if the retrieved entity is only a proxy
-
detailByRef
public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail detailByRef(XTDBOMRSRepositoryConnector xtdb, xtdb.api.IXtdbDatasource db, String ref) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityProxyOnlyException Translate the provided XTDB document reference into an Egeria entity.- Parameters:
xtdb- connectivity to XTDBdb- from which to retrieve the detailsref- reference to the entity document- Returns:
- EntityDetail
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityProxyOnlyException- if the retrieved entity is only a proxy
-