Class AddRelationship
- java.lang.Object
-
- org.odpi.egeria.connectors.juxt.xtdb.txnfn.AbstractTransactionFunction
-
- org.odpi.egeria.connectors.juxt.xtdb.txnfn.AddRelationship
-
public class AddRelationship extends AbstractTransactionFunction
Transaction function for adding a Relationship.
-
-
Field Summary
Fields Modifier and Type Field Description static clojure.lang.KeywordFUNCTION_NAME
-
Constructor Summary
Constructors Constructor Description AddRelationship(Long txId, String entityOneGUID, String entityTwoGUID, clojure.lang.PersistentHashMap proxy1, clojure.lang.PersistentHashMap proxy2, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship)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 org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationshiptransact(XtdbOMRSRepositoryConnector xtdb, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, String entityOneGUID, String entityTwoGUID)Create the provided entity instance in 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
-
AddRelationship
public AddRelationship(Long txId, String entityOneGUID, String entityTwoGUID, clojure.lang.PersistentHashMap proxy1, clojure.lang.PersistentHashMap proxy2, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship) throws Exception
Constructor used to execute the transaction function.- Parameters:
txId- the transaction ID of this function invocationentityOneGUID- the unique identifier of the first endpoint of the relationshipentityTwoGUID- the unique identifier of the second endpoint of the relationshipproxy1- XTDB document representing the EntityProxy at endpoint 1 of the relationshipproxy2- XTDB document representing the EntityProxy at endpoint 2 of the relationshiprelationship- the relationship to create- Throws:
Exception- on any error
-
-
Method Detail
-
transact
public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship transact(XtdbOMRSRepositoryConnector xtdb, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship, String entityOneGUID, String entityTwoGUID) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityNotKnownException, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
Create the provided entity instance in the XTDB repository by pushing down the transaction.- Parameters:
xtdb- connectivityrelationship- to createentityOneGUID- unique identifier of the first endpoint's proxyentityTwoGUID- unique identifier of the second endpoint's proxy- Returns:
- Relationship as it was created
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityNotKnownException- one of the requested entity proxy's is not knownorg.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException- one of the parameters is invalid or nullorg.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
-
-