private String getDatasetVersionRenameFromHelper(int accountId, int containerId, String datasetName,
      long sourceVersionValue) throws SQLException, AccountServiceException {
    PreparedStatement getDatasetVersionRenameFromStatement =
        dataAccessor.getPreparedStatement(getDatasetVersionRenameFromSql, true);
    try {
      return executeGetDatasetVersionRenameStatement(getDatasetVersionRenameFromStatement, accountId, containerId,
          datasetName, sourceVersionValue);
    } catch (AccountServiceException e) {
      dataAccessor.onException(e, Read);
      throw e;
    }
  }
Helper function to rename a dataset version from source version to target version.
@param accountId the id for the parent account.
@param containerId the id of the container.
@param datasetName the name of the dataset.
@param sourceVersion the source version to rename.
@param targetVersion the target version to rename.
@throws SQLException
@throws AccountServiceException
ambry-account/src/main/java/com/github/ambry/account/mysql/DatasetDao.java