811812813814815816817
} catch (RepositoryException e) { e.printStackTrace(); throw new RepositoryException("SQLException: " + e.getMessage()); } return new ConcreteIterator(cList); }
114115116117118119120
} catch (PersistenceMechanismException e) { throw new RepositoryException(e.getMessage()); } } return new ConcreteIterator(listaEsp); }
512513514515516517518
} catch (PersistenceMechanismException e) { e.printStackTrace(); throw new RepositoryException("PersistenceMechanismException: " + e.getMessage()); } return new ConcreteIterator(cList); }
52535455565758
} public IteratorDsk getHealthUnitList() throws RepositoryException, ObjectNotFoundException { if (indice == 0) throw new ObjectNotFoundException("There isn't registered Health units"); return new ConcreteIterator(Arrays.asList(vetor)); }
57585960616263
return new ConcreteIterator(Arrays.asList(vetor)); } public IteratorDsk getPartialHealthUnitList() throws RepositoryException, ObjectNotFoundException { return new ConcreteIterator(Arrays.asList(vetor)); }
7475767778798081828384
} aux++; } if (! response.isEmpty()) { return new ConcreteIterator(response); } else { throw new ObjectNotFoundException( "There isn't registered health units for the specialty"); } }
44454647484950
public boolean hasNext() { return ponteiro < indice; } public IteratorDsk getDiseaseTypeList() throws RepositoryException, ObjectNotFoundException { return new ConcreteIterator(Arrays.asList(vetor)); }
149150151152153154155156
throw new RepositoryException(e.getMessage()); } } // O retorno desse metodo eh uma estrutura que permite a // iteracao nos elementos return new ConcreteIterator(listaSymptom); }
103104105106107108109
} return i; } public IteratorDsk getSymptomList() throws RepositoryException, ObjectNotFoundException { return new ConcreteIterator(Arrays.asList(vetor)); }
} public IteratorDsk getSpecialityList() throws RepositoryException, ObjectNotFoundException { if (indice == 0) throw new ObjectNotFoundException("There isn't registered Health units"); return new ConcreteIterator(Arrays.asList(vetor)); }