the simple final project

my simple final project
1.i think this way can avoid loading all of records into a list.:
int size = facultyQB.getQueryResolver().list().size();
        if(size<0)
2.but later i need to use it:
for(FacultyMemberProfile facultyMember:facultyMembers)
        {