Class HousesServiceDTORepoImpl
java.lang.Object
info.ejava.assignments.api.houserenters.svc.houses.HousesServiceDTORepoImpl
- All Implemented Interfaces:
HousesService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateHouse(HouseDTO newHouse) org.springframework.data.domain.Page<HouseDTO> findHousesBy(HouseSearchParams searchParams, org.springframework.data.domain.Pageable pageable) This method is constrained to searching for one property in order the keep the interface with the DAO simple and consistent with dynamic SpringData repository interfaces.booleanvoidvoidremoveHouse(String id) updateHouse(String id, HouseDTO updateHouse)
-
Field Details
-
repo
-
-
Constructor Details
-
HousesServiceDTORepoImpl
public HousesServiceDTORepoImpl()
-
-
Method Details
-
createHouse
- Specified by:
createHousein interfaceHousesService
-
getHouse
- Specified by:
getHousein interfaceHousesService
-
hasHouse
- Specified by:
hasHousein interfaceHousesService
-
updateHouse
- Specified by:
updateHousein interfaceHousesService
-
findHousesBy
public org.springframework.data.domain.Page<HouseDTO> findHousesBy(HouseSearchParams searchParams, org.springframework.data.domain.Pageable pageable) This method is constrained to searching for one property in order the keep the interface with the DAO simple and consistent with dynamic SpringData repository interfaces.- Specified by:
findHousesByin interfaceHousesService- Parameters:
searchParams- collection of parameterspageable- paging spec- Returns:
- page of houses matching the search criteria
-
removeHouse
- Specified by:
removeHousein interfaceHousesService
-
removeAllHouses
public void removeAllHouses()- Specified by:
removeAllHousesin interfaceHousesService
-