Examples of Cliente


Examples of br.com.sistelecom.entity.Cliente

    try{
      ps = conn.prepareStatement("select * from cliente");
      rs = ps.executeQuery();
      List<Cliente> list = new ArrayList<Cliente>();
      while(rs.next()) {
        list.add(new Cliente(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4), rs.getInt(5), rs.getString(6), rs.getInt(7), rs.getString(8), rs.getString(9), rs.getInt(10), rs.getInt(11), rs.getLong(12), rs.getLong(13), rs.getLong(14), rs.getString(15), rs.getLong(16), rs.getDate(17), rs.getString(18), rs.getString(19), rs.getDate(20), rs.getString(21), rs.getString(22), rs.getDate(23), rs.getString(24), rs.getString(25), rs.getDate(26)));
      }
      return list;
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of br.com.sistelecom.entity.Cliente

      rs = ps.executeQuery();
      if (!rs.next()) {
        throw new Exception("Não foi encontrado o cliente com esse id: " + id);
      }

      Cliente cliente = new Cliente();
      cliente.setIdCliente(id);
      cliente.setCnpj(rs.getString(2));
      cliente.setRazaoSocial(rs.getString(3));
      cliente.setNomeFantasia(rs.getString(4));
      cliente.setRamo(rs.getInt(5));
      cliente.setLogradouro(rs.getString(6));
      cliente.setNumero(rs.getInt(7));
      cliente.setComplemento(rs.getString(8));
      cliente.setBairro(rs.getString(9));
      cliente.setCidade(rs.getInt(10));
      cliente.setUf(rs.getInt(11));
      cliente.setCep(rs.getLong(12));
      cliente.setTel1(rs.getLong(13));
      cliente.setTel2(rs.getLong(14));
      cliente.setEmail(rs.getString(15));
      cliente.setInscEst(rs.getLong(16));
      cliente.setDesde(rs.getDate(17));
      cliente.setCpfResp1(rs.getString(18));
      cliente.setNomeResp1(rs.getString(19));
      cliente.setNascResp1(rs.getDate(20));
      cliente.setCpfResp2(rs.getString(21));
      cliente.setNomeResp2(rs.getString(22));
      cliente.setNascResp2(rs.getDate(23));
      cliente.setCpfResp3(rs.getString(24));
      cliente.setNomeResp3(rs.getString(25));
      cliente.setNascResp3(rs.getDate(26));

      return cliente;
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

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

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

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

  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

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

  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

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

      // // 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

Examples of com.loja.model.Cliente

    endereco.setCep("60125-070");
    endereco.setCidade(cidade);
    enderecoService.setEndereco(endereco);
    enderecoService.save();
   
    Cliente cliente = new Cliente();
    cliente.setNome("Jose das Candeias");
    cliente.setEndereco(endereco);
    clienteService.setCliente(cliente);
    clienteService.save();
    clienteSalvo = cliente;
    cidadeSalvo = cidade;
    estadoSalvo = estado;
View Full Code Here

Examples of com.loja.model.Cliente

    fornecedor.setEndereco(endereco);
    fornecedor.setNome("Fulano e fulano");
    fornecedorService.setFornecedor(fornecedor);
    fornecedorService.save();
   
    Cliente cliente = new Cliente();
    cliente.setNome("Jose das Candeias");
    cliente.setEndereco(endereco);
    clienteService.setCliente(cliente);
    clienteService.save();
    clienteSalvo = cliente;
    colaboradorSalvo = colaborador;
   
View Full Code Here

Examples of entidades.Cliente


    public static void getProperties(Serializable entity,HashMap<String,String> campos) {
        if(entity instanceof Cliente){
            campos.clear();
            Cliente c = (Cliente) entity;
            campos.put(ConstantesFactura.CLIENTE_DIRECCION, c.getDireccion());
            campos.put(ConstantesFactura.CLIENTE_APELLIDO,c.getApellido());
            campos.put(ConstantesFactura.CLIENTE_NOMBRE, c.getNombre());
            campos.put(ConstantesFactura.CLIENTE_CUIT, c.getCuit());
            campos.put(ConstantesFactura.CLIENTE_IVA, c.getIva().getDescripcion());
            campos.put(ConstantesFactura.CLIENTE_ID,String.valueOf(c.getId()));
        }else if(entity instanceof Producto){
            campos.clear();
            Producto p = (Producto) entity;
            campos.put(ConstantesFactura.PRODUCTO_ID,String.valueOf(p.getId()));
            campos.put(ConstantesFactura.PRODUCTO_NOMBRE,p.getNombre());
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.