Package co.edu.eafit.ejemplopersistencia.modelo.gestioncliente

Examples of co.edu.eafit.ejemplopersistencia.modelo.gestioncliente.Cliente


  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


  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

  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

  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

      // // Si la condición es null o vacia, no hay parte WHERE
      String orden = "SELECT * FROM cliente cl "
          + "WHERE cl.idcliente = " + codigo;
      java.sql.Statement sentencia = con.createStatement();
      ResultSet rs = sentencia.executeQuery(orden);
      Cliente cliente = null;
      while (rs.next()) {
        cliente = new Cliente();
        cliente.setIdCliente(rs.getInt("idcliente"));
        cliente.setNombre(rs.getString("nombre"));
        cliente.setApellido(rs.getString("apellido"));
        System.out.println("recupero cliente " + cliente);
      }
      sentencia.close();
      return cliente;
    } catch (Exception ex) {
View Full Code Here

TOP

Related Classes of co.edu.eafit.ejemplopersistencia.modelo.gestioncliente.Cliente

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.