Package lib.util

Examples of lib.util.ConcreteIterator


    } catch (RepositoryException e) {
      e.printStackTrace();
      throw new RepositoryException("SQLException: " + e.getMessage());
    }

    return new ConcreteIterator(cList);
  }
View Full Code Here


      } catch (PersistenceMechanismException e) {
        throw new RepositoryException(e.getMessage());
      }
    }

    return new ConcreteIterator(listaEsp);
  }
View Full Code Here

    } catch (PersistenceMechanismException e) {
      e.printStackTrace();
      throw new RepositoryException("PersistenceMechanismException: " + e.getMessage());
    }

    return new ConcreteIterator(cList);
  }
View Full Code Here

  }

  public IteratorDsk getHealthUnitList() throws RepositoryException, ObjectNotFoundException {
    if (indice == 0)
      throw new ObjectNotFoundException("There isn't registered Health units");
    return new ConcreteIterator(Arrays.asList(vetor));
  }
View Full Code Here

    return new ConcreteIterator(Arrays.asList(vetor));
  }

  public IteratorDsk getPartialHealthUnitList() throws RepositoryException,
      ObjectNotFoundException {
    return new ConcreteIterator(Arrays.asList(vetor));
  }
View Full Code Here

      }
      aux++;
    }

    if (! response.isEmpty()) {
      return new ConcreteIterator(response);
    } else {
      throw new ObjectNotFoundException(
          "There isn't registered health units for the specialty");
    }
  }
View Full Code Here

  public boolean hasNext() {
    return ponteiro < indice;
  }

  public IteratorDsk getDiseaseTypeList() throws RepositoryException, ObjectNotFoundException {
    return new ConcreteIterator(Arrays.asList(vetor));
  }
View Full Code Here

                throw new RepositoryException(e.getMessage());
            }
        }
        // O retorno desse metodo eh uma estrutura que permite a
        // iteracao nos elementos
        return new ConcreteIterator(listaSymptom);

  }
View Full Code Here

    }
    return i;
  }
 
  public IteratorDsk getSymptomList() throws RepositoryException,  ObjectNotFoundException {
    return new ConcreteIterator(Arrays.asList(vetor));
  }
View Full Code Here

  }

  public IteratorDsk getSpecialityList() throws RepositoryException, ObjectNotFoundException {
    if (indice == 0)
      throw new ObjectNotFoundException("There isn't registered Health units");
    return new ConcreteIterator(Arrays.asList(vetor));
  }
View Full Code Here

TOP

Related Classes of lib.util.ConcreteIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.