Ejemplo n.º 1
0
 @Override
 public List<Task> findByStory(Story $story) throws DAOException {
   List<Task> tasks = new LinkedList<Task>();
   List<Task> allTasks = this.findAll();
   for (Task task : allTasks) {
     if (task.getStory().equals($story)) {
       tasks.add(task);
     } // if
   } // for
   return tasks;
 }