}
return biol;
}
private List<Entity> getKindEntityList(String entityKind) {
Query q = new Query(entityKind);
if (entityKind.equals(DEPARTMENT_KIND)) {
q.addSort(DEPARTMENT_ID_PROPERTY, SortDirection.ASCENDING);
}
else if (entityKind.equals(COURSE_KIND)) {
q.addSort(DEPARTMENT_ID_PROPERTY, SortDirection.ASCENDING);
q.addSort(COURSE_ID_PROPERTY, SortDirection.ASCENDING);
} else if (entityKind.equals(SECTION_KIND)) {
q.addSort(DEPARTMENT_ID_PROPERTY, SortDirection.ASCENDING);
q.addSort(COURSE_ID_PROPERTY, SortDirection.ASCENDING);
q.addSort(SECTION_ID_PROPERTY, SortDirection.ASCENDING);
}
List<Entity> results = datastore.prepare(q).asList(
FetchOptions.Builder.withDefaults());
return results;
}