Class PurgeClassificationReferenceCopy
- java.lang.Object
-
- org.odpi.egeria.connectors.juxt.xtdb.txnfn.AbstractTransactionFunction
-
- org.odpi.egeria.connectors.juxt.xtdb.txnfn.PurgeClassificationReferenceCopy
-
public class PurgeClassificationReferenceCopy extends AbstractTransactionFunction
Transaction function for adding a reference copy classification.
-
-
Field Summary
Fields Modifier and Type Field Description static clojure.lang.KeywordFUNCTION_NAME
-
Constructor Summary
Constructors Constructor Description PurgeClassificationReferenceCopy(Long txId, clojure.lang.PersistentHashMap existing, clojure.lang.PersistentHashMap entity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification classification, String homeMetadataCollectionId)Constructor used to execute the transaction function.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcreate(xtdb.api.tx.Transaction.Builder tx)Create the transaction function within XTDB.clojure.lang.IPersistentMapdoc()Interface that returns the updated document to write-back from the transaction.static voidtransact(XtdbOMRSRepositoryConnector xtdb, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail toPurgeFrom, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification classification)Permanently remove the provided classification from the XTDB repository by pushing down the transaction.-
Methods inherited from class org.odpi.egeria.connectors.juxt.xtdb.txnfn.AbstractTransactionFunction
createTransactionFunction, getGUID, getInstanceProvenanceType, getMetadataCollectionId, getTxnTimeCalculation, getTypeDefForInstance, getTypeDefGUID, incrementVersion, incrementVersion
-
-
-
-
Constructor Detail
-
PurgeClassificationReferenceCopy
public PurgeClassificationReferenceCopy(Long txId, clojure.lang.PersistentHashMap existing, clojure.lang.PersistentHashMap entity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.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 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 Detail
-
transact
public static void transact(XtdbOMRSRepositoryConnector xtdb, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail toPurgeFrom, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification classification) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityConflictException, org.odpi.openmetadata.repositoryservices.ffdc.exception.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:
org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityConflictException- the new entity conflicts with an existing entityorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- 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
-
-