Class SaveClassificationReferenceCopyEntityDetail
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AbstractTransactionFunction
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.SaveClassificationReferenceCopy
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.SaveClassificationReferenceCopyEntityDetail
Transaction function for adding a reference copy classification.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.SaveClassificationReferenceCopy
xtdbDoc
-
Constructor Summary
ConstructorDescriptionSaveClassificationReferenceCopyEntityDetail
(Long txId, String entityGUID, clojure.lang.PersistentHashMap existing, clojure.lang.PersistentHashMap entity, 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 toStoreAgainst, Classification classification) Create the provided classification in the XTDB repository by pushing down the transaction.Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.SaveClassificationReferenceCopy
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
-
SaveClassificationReferenceCopyEntityDetail
public SaveClassificationReferenceCopyEntityDetail(Long txId, String entityGUID, clojure.lang.PersistentHashMap existing, clojure.lang.PersistentHashMap entity, Classification classification, String homeMetadataCollectionId) throws Exception Constructor used to execute the transaction function.- Parameters:
txId
- the transaction ID of this function invocationentityGUID
- unique identifier of the existing entityexisting
- 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 Details
-
transact
public static void transact(XTDBOMRSRepositoryConnector xtdb, EntityDetail toStoreAgainst, Classification classification) throws EntityConflictException, TypeErrorException, PropertyErrorException, InvalidParameterException, RepositoryErrorException Create the provided classification in the XTDB repository by pushing down the transaction.- Parameters:
xtdb
- connectivitytoStoreAgainst
- the entity against which to persist the classificationclassification
- to persist as a reference copy- Throws:
EntityConflictException
- the new entity conflicts with an existing entityTypeErrorException
- the requested type is not known or not supportedPropertyErrorException
- one or more of the requested properties are not defined or have different characteristics in the TypeDef for this classification typeInvalidParameterException
- one of the parameters is invalid or nullRepositoryErrorException
- 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
-