@Override public List<Proveedor> getAll(Connection connection) { return proveedorModel.getAll(connection); }
@Override public boolean delete(Connection connection, Object id) { return proveedorModel.delete(connection, id) == 1; }
public boolean update( Connection connection, Proveedor proveedor, Object id, Domicilio dom, Object id_domicilio) { domicilioModel.update(connection, dom, id_domicilio); return proveedorModel.update(connection, proveedor, id) == 1; }
public boolean delete(Connection connection, Object id, Object id_domicilio) { if (domicilioModel.delete(connection, id_domicilio) == 1) { proveedorModel.delete(connection, id); } return true; }
public boolean create(Connection connection, Proveedor proveedor, Domicilio dom) { proveedor.domicilio_id_domicilio = domicilioModel.create(connection, dom); return proveedorModel.create(connection, proveedor) == 1; }