use of gov.usgs.cida.coastalhazards.model.util.Status.StatusName in project coastal-hazards by USGS-CIDA.
the class StatusManager method loadAll.
public Map<StatusName, Status> loadAll() {
Map<StatusName, Status> result = new TreeMap<>();
Query selectQuery = em.createQuery(HQL_SELECT_ALL);
List<Status> resultList = selectQuery.getResultList();
for (Status status : resultList) {
result.put(status.getStatusName(), status);
}
return result;
}
Aggregations