Advertisement
Guest User

bean

a guest
May 24th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1.  
  2. package Bean;
  3.  
  4. import Modelo.Banco;
  5. import Modelo.Cliente;
  6. import Modelo.Cuenta;
  7. import javax.ejb.Stateless;
  8. import javax.ejb.LocalBean;
  9.  
  10.  
  11. @Stateless
  12. @LocalBean
  13. public class ServicioBanco {
  14.  
  15. Banco miBanco = new Banco();
  16. Cliente cl = new Cliente();
  17. Cuenta cu = new Cuenta ();
  18.  
  19. public void agregarCliente (String rut, String nombre, String ciudad, int codigo){
  20. miBanco.agregarCliente(cl);
  21. }
  22.  
  23. public Cliente buscarCliente (String rut){
  24. return miBanco.buscarCliente(rut);
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement