stored = this.dbMngr.storeRuralHouses(rh);
return stored;
}
-
+ @Override
+
+ public boolean registerNewHouse(RuralHouse rh) {
+
+ boolean stored = false;
+
+ rh.getOwner().getRuralHouses().add(rh);
+ stored = this.dbMngr.storeRuralHouses(rh);
+ return stored;
+ }
public void removeHouse(RuralHouse rh , Owner owner) {
return this.dbMngr.getRuralHousesByTown(town);
}
+
+ public Vector<RuralHouse> getHouses(String town,int nBed , int nKit, int nBath, int nPark, int nLiv) {
+
+ return this.dbMngr.getRuralHouses(town, nBed, nKit, nBath, nPark, nLiv);
+ }