Академический Документы
Профессиональный Документы
Культура Документы
CAPA DATOS
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package capadatos;
import java.sql.*;
/**
*
* @author Javier
*/
resultado=cmd.executeQuery();
} catch (Exception e) {
System.out.println(e.getMessage());
}
return resultado;
}
}
CAPA NEGOCIO
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package capanegocio;
import capadatos.Datos;
import capaentidad.EnArticulo;
import java.util.*;
import java.sql.*;
/**
*
* @author Javier
*/
public class NeArticulo {
resultado=objdatos.runQuery("{call speliminar(?)}",
new Object[]{obj.getCodigo()});
} catch (Exception e) {
resultado=e.getMessage();
}
return resultado;
}
CAPA ENTIDAD
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package capaentidad;
/**
*
* @author Javier
*/
public class EnArticulo {
/*`articulo```````*/
/**
* @return the codigo
*/
public String getCodigo() {
return codigo;
}
/**
* @param codigo the codigo to set
*/
public void setCodigo(String codigo) {
this.codigo = codigo;
}
/**
* @return the nombre
*/
public String getNombre() {
return nombre;
}
/**
* @param nombre the nombre to set
*/
public void setNombre(String nombre) {
this.nombre = nombre;
}
/**
* @return the precio
*/
public String getPrecio() {
return precio;
}
/**
* @param precio the precio to set
*/
public void setPrecio(String precio) {
this.precio = precio;
}
}
: Javier
--%>
</form>
</body>
</html>