- @Override
- public boolean registerNewHouse(int houseNumber, Owner owner, String town,
- int nRooms, int nKitchens, int nBaths, int nLivings, int nParkings) {
- // TODO Auto-generated method stub
- boolean stored = false;
- if (nKitchens < 1 || nLivings < 3 || nBaths < 2)
- return false;
- HouseFeatures feature = new HouseFeatures(nRooms, nKitchens, nBaths,
- nLivings, nParkings);
- stored = this.dbMngr.storeRuralHouses(new RuralHouse(houseNumber,
- owner, town, feature));
- return stored;