Class PurgeClassificationReferenceCopyEntityDetail
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AbstractTransactionFunction
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.PurgeClassificationReferenceCopy
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.PurgeClassificationReferenceCopyEntityDetail
Transaction function for adding a reference copy classification.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.PurgeClassificationReferenceCopy
xtdbDoc
-
Constructor Summary
ConstructorDescriptionPurgeClassificationReferenceCopyEntityDetail
(Long txId, clojure.lang.PersistentHashMap existing, clojure.lang.PersistentHashMap entity, String entityGUID, Classification classification, String homeMetadataCollectionId) Constructor used to execute the transaction function. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
create
(xtdb.api.tx.Transaction.Builder tx) Create the transaction function within XTDB.clojure.lang.IPersistentMap
doc()
Interface that returns the updated document to write-back from the transaction.static void
transact
(XTDBOMRSRepositoryConnector xtdb, EntityDetail toPurgeFrom, Classification classification) Permanently remove the provided classification from the XTDB repository by pushing down the transaction.Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.PurgeClassificationReferenceCopy
getTxFn
Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AbstractTransactionFunction
createTransactionFunction, getGUID, getInstanceProvenanceType, getMetadataCollectionId, getTxnTimeCalculation, getTypeDefForInstance, getTypeDefGUID, incrementVersion, incrementVersion
-
Field Details
-
FUNCTION_NAME
public static final clojure.lang.Keyword FUNCTION_NAME
-
-
Constructor Details
-
PurgeClassificationReferenceCopyEntityDetail
public PurgeClassificationReferenceCopyEntityDetail(Long txId, clojure.lang.PersistentHashMap existing, clojure.lang.PersistentHashMap entity, String entityGUID, Classification classification, String homeMetadataCollectionId) throws Exception Constructor used to execute the transaction function.- Parameters:
txId
- the transaction ID of this function invocationexisting
- the existing entity in XT, if anyentity
- the entity against which to apply the classificationentityGUID
- GUID of the entity from which we are purging the classificationclassification
- the classification to persist as a reference copyhomeMetadataCollectionId
- the metadataCollectionId of the repository where the transaction is running- Throws:
Exception
- on any error
-
-
Method Details
-
transact
public static void transact(XTDBOMRSRepositoryConnector xtdb, EntityDetail toPurgeFrom, Classification classification) throws EntityConflictException, RepositoryErrorException Permanently remove the provided classification from the XTDB repository by pushing down the transaction.- Parameters:
xtdb
- connectivitytoPurgeFrom
- the entity from which to remove the classificationclassification
- to permanently remove- Throws:
EntityConflictException
- the new entity conflicts with an existing entityRepositoryErrorException
- on any other error
-
doc
public clojure.lang.IPersistentMap doc()Interface that returns the updated document to write-back from the transaction.- Returns:
- IPersistentMap giving the updated document in its entirety
-
create
public static void create(xtdb.api.tx.Transaction.Builder tx) Create the transaction function within XTDB.- Parameters:
tx
- transaction through which to create the function
-