Create a db entry for releasefile of the given release

        Set _releasedbentry and _commentdbentry of the given release file

        This is inteded to be used in a action unit.

        :param release: the release with the releasefile and comment
        :type release: :class:`Release`
        :returns: an action status
        :rtype: :class:`ActionStatus`
        :raises: ValidationError, If the comment could not be created, the TaskFile is deleted and the Exception is propagated.

def create_db_entry(self, release):
        """Create a db entry for releasefile of the given release

        Set _releasedbentry and _commentdbentry of the given release file

        This is inteded to be used in a action unit.

        :param release: the release with the releasefile and comment
        :type release: :class:`Release`
        :returns: an action status
        :rtype: :class:`ActionStatus`
        :raises: ValidationError, If the comment could not be created, the TaskFile is deleted and the Exception is propagated.
        """
        log.info("Create database entry with comment: %s", release.comment)
        tfi = release._releasefile.get_obj()
        tf, note = tfi.create_db_entry(release.comment)
        release._releasedbentry = tf
        release._commentdbentry = note
        return ActionStatus(ActionStatus.SUCCESS,
                            msg="Created database entry for the release filw with comment: %s" % release.comment)