Class AddEntity
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AbstractTransactionFunction
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AddEntity
Transaction function for adding an entity.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
create
(xtdb.api.tx.Transaction.Builder tx) Create the transaction function within XTDB.static EntityDetail
transact
(XTDBOMRSRepositoryConnector xtdb, EntityDetail entity) Create the provided entity instance in the XTDB repository by pushing down the transaction.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
-
-
Method Details
-
transact
public static EntityDetail transact(XTDBOMRSRepositoryConnector xtdb, EntityDetail entity) throws RepositoryErrorException Create the provided entity instance in the XTDB repository by pushing down the transaction.- Parameters:
xtdb
- connectivityentity
- to create- Returns:
- EntityDetail the entity that was created
- Throws:
RepositoryErrorException
- on any error
-
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
-