return select(q, "getByFolder", params(folderId));
}
@Override
public FileEntity getByName(Long folderId, String name) {
Query q = newQuery();
q.addFilter("folderId", EQUAL, folderId);
q.addFilter("filename", EQUAL, name);
return selectOne(q, "getByName", params(folderId, name));
}