Ejemplo n.º 1
0
 public int update(IngredienteReceta p) {
   ContentValues valores = new ContentValues();
   valores.put(Contrato.TablaRecetaIngredientes.ID_INGREDIENTE, p.getId_ingrediente());
   valores.put(Contrato.TablaRecetaIngredientes.ID_RECETA, p.getId_receta());
   String condicion = Contrato.TablaRecetaIngredientes._ID + " = ?";
   String[] argumentos = {p.getId() + ""};
   int cuenta = bd.update(Contrato.TablaRecetaIngredientes.TABLA, valores, condicion, argumentos);
   return cuenta;
 }
Ejemplo n.º 2
0
 public int delete(IngredienteReceta p) {
   return delete(p.getId());
 }