Package co.edu.eafit.ejemplopersistencia.dao

Examples of co.edu.eafit.ejemplopersistencia.dao.DaoInterface.find()


  public String transfer(int cliente, int idCuentaDesde, int idCuentaHasta,
      int cantidad) throws Exception {
    // try{
    DaoInterface daoEntidad = factoriaDao.getDaoCliente();
    Cliente clienteEnt = (Cliente) daoEntidad.find(cliente);
    if (clienteEnt == null) {
      throw new NonExistentClientException("El cliente " + cliente
          + " no existe");
    }
    daoEntidad = factoriaDao.getDaoCuenta();
View Full Code Here


    if (clienteEnt == null) {
      throw new NonExistentClientException("El cliente " + cliente
          + " no existe");
    }
    daoEntidad = factoriaDao.getDaoCuenta();
    Cuenta cuentaDesde = (Cuenta) daoEntidad.find(idCuentaDesde);

    // chequeando precondiciones
    if (cuentaDesde == null) {
      throw new CuentaInexistenteExcepcion("La cuenta desde "
          + idCuentaDesde + " no existe");
View Full Code Here

          + idCuentaDesde + " no existe");
    }
    // asocia al elemento recuperado su observador
    cuentaDesde.addObserver(vista);

    Cuenta cuentaHasta = (Cuenta) daoEntidad.find(idCuentaHasta);

    if (cuentaHasta == null) {
      throw new CuentaInexistenteExcepcion("La cuenta hasta "
          + idCuentaHasta + " no existe");
    }
View Full Code Here

  public String transfer(int cliente, int idCuentaDesde, int idCuentaHasta,
      int cantidad) throws Exception {
    // try{
    DaoInterface daoEntidad = factoriaDao.getDaoCliente();
    Cliente clienteEnt = (Cliente) daoEntidad.find(cliente);
    if (clienteEnt == null) {
      throw new NonExistentClientException("El cliente " + cliente
          + " no existe");
    }
    daoEntidad = factoriaDao.getDaoCuenta();
View Full Code Here

    if (clienteEnt == null) {
      throw new NonExistentClientException("El cliente " + cliente
          + " no existe");
    }
    daoEntidad = factoriaDao.getDaoCuenta();
    Cuenta cuentaDesde = (Cuenta) daoEntidad.find(idCuentaDesde);

    // chequeando precondiciones
    if (cuentaDesde == null) {
      throw new NonExistentAccountExcepcion("La cuenta desde "
          + idCuentaDesde + " no existe");
View Full Code Here

          + idCuentaDesde + " no existe");
    }
    // asocia al elemento recuperado su observador
    cuentaDesde.addObserver(vista);

    Cuenta cuentaHasta = (Cuenta) daoEntidad.find(idCuentaHasta);

    if (cuentaHasta == null) {
      throw new NonExistentAccountExcepcion("La cuenta hasta "
          + idCuentaHasta + " no existe");
    }
View Full Code Here

  public String transferir(int cliente, int idCuentaDesde, int idCuentaHasta,
      int cantidad) throws Exception {
    // try{
    DaoInterface daoEntidad = factoriaDao.getDaoCliente();
    Cliente clienteEnt = (Cliente) daoEntidad.find(cliente);
    if (clienteEnt == null) {
      throw new ClienteInexistenteExcepcion("El cliente " + cliente
          + " no existe");
    }
    daoEntidad = factoriaDao.getDaoCuenta();
View Full Code Here

    if (clienteEnt == null) {
      throw new ClienteInexistenteExcepcion("El cliente " + cliente
          + " no existe");
    }
    daoEntidad = factoriaDao.getDaoCuenta();
    Cuenta cuentaDesde = (Cuenta) daoEntidad.find(idCuentaDesde);

    // chequeando precondiciones
    if (cuentaDesde == null) {
      throw new CuentaInexistenteExcepcion("La cuenta desde "
          + idCuentaDesde + " no existe");
View Full Code Here

      throw new CuentaInexistenteExcepcion("La cuenta desde "
          + idCuentaDesde + " no existe");
    }
    // asocia al elemento recuperado su observador

    Cuenta cuentaHasta = (Cuenta) daoEntidad.find(idCuentaHasta);

    if (cuentaHasta == null) {
      throw new CuentaInexistenteExcepcion("La cuenta hasta "
          + idCuentaHasta + " no existe");
    }
View Full Code Here

  public String transferir(int cliente, int idCuentaDesde, int idCuentaHasta,
      int cantidad) throws Exception {
    // try{
    DaoInterface daoEntidad = factoriaDao.getDaoCliente();
    Cliente clienteEnt = (Cliente) daoEntidad.find(cliente);
    if (clienteEnt == null) {
      throw new ClienteInexistenteExcepcion("El cliente " + cliente
          + " no existe");
    }
    daoEntidad = factoriaDao.getDaoCuenta();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.