public void updateDatasetVersionTtl(int accountId, int containerId, String accountName, String containerName,
      String datasetName, String version) throws SQLException, AccountServiceException {
    try {
      long startTimeMs = System.currentTimeMillis();
      Dataset dataset = getDatasetHelper(accountId, containerId, accountName, containerName, datasetName, true);
      long versionNumber = getVersionBasedOnSchema(version, dataset.getVersionSchema());
      PreparedStatement versionTtlUpdateSchemaStatement =
          dataAccessor.getPreparedStatement(updateDatasetVersionTtlSql, true);
      executeVersionTtlUpdateStatement(versionTtlUpdateSchemaStatement, accountId, containerId, datasetName,
          versionNumber);
      dataAccessor.onSuccess(Write, System.currentTimeMillis() - startTimeMs);
    } catch (SQLException | AccountServiceException e) {
      dataAccessor.onException(e, Delete);
      throw e;
    }
  }
Update ttl for dataset version.
@param accountId the id for the parent account.
@param containerId the id of the container.
@param accountName the name of the account.
@param containerName the name of the container.
@param datasetName the name of the dataset.
@param version the version of the dataset.
@throws SQLException
ambry-account/src/main/java/com/github/ambry/account/mysql/DatasetDao.java