public static void seedTxnSequence(Connection conn, Configuration conf, Statement stmt, long seedTxnId) throws SQLException {
    String dbProduct = conn.getMetaData().getDatabaseProductName();
    DatabaseProduct databaseProduct = determineDatabaseProduct(dbProduct, conf);
    stmt.execute(databaseProduct.getTxnSeedFn(seedTxnId));
  }
Restarts the txnId sequence with the given seed value.
It is the responsibility of the caller to not set the sequence backward.
@param conn database connection
@param stmt sql statement
@param seedTxnId the seed value for the sequence
@throws SQLException ex
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnUtils.java