|
@ -25,6 +25,7 @@ public class PaisesBL implements PaisesBLLocal { |
|
|
// "Insert Code > Add Business Method")
|
|
|
// "Insert Code > Add Business Method")
|
|
|
@Override |
|
|
@Override |
|
|
public Mensaje agregar(Paises paises) { |
|
|
public Mensaje agregar(Paises paises) { |
|
|
|
|
|
try { |
|
|
System.out.println("Llegaste al metodo de agregar paises"); |
|
|
System.out.println("Llegaste al metodo de agregar paises"); |
|
|
PaisesDAO paisesDao = new PaisesDAO(); |
|
|
PaisesDAO paisesDao = new PaisesDAO(); |
|
|
Mensaje m; |
|
|
Mensaje m; |
|
@ -55,6 +56,10 @@ public class PaisesBL implements PaisesBLLocal { |
|
|
m = Mensaje.SIN_ERROR; |
|
|
m = Mensaje.SIN_ERROR; |
|
|
} |
|
|
} |
|
|
return m; |
|
|
return m; |
|
|
|
|
|
|
|
|
|
|
|
} catch (NullPointerException e){ |
|
|
|
|
|
return Mensaje.DATOS_INCORRECTOS; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|