@classmethod
def by_sha256(cls, session, sha256sum):
    """ Retrieve the files having the specified sha256sum. """
    query = session.query(cls).filter(cls.sha256sum == sha256sum)
    return query.all()
