java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AbstractTransactionFunction
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AddEntity

public class AddEntity extends AbstractTransactionFunction
Transaction function for adding an entity.
  • 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 - connectivity
      entity - 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