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.boolean
void
void
removeHouse
(String id) updateHouse
(String id, HouseDTO updateHouse)
-
Field Details
-
repo
-
-
Constructor Details
-
HousesServiceDTORepoImpl
public HousesServiceDTORepoImpl()
-
-
Method Details
-
createHouse
- Specified by:
createHouse
in interfaceHousesService
-
getHouse
- Specified by:
getHouse
in interfaceHousesService
-
hasHouse
- Specified by:
hasHouse
in interfaceHousesService
-
updateHouse
- Specified by:
updateHouse
in 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:
findHousesBy
in interfaceHousesService
- Parameters:
searchParams
- collection of parameterspageable
- paging spec- Returns:
- page of houses matching the search criteria
-
removeHouse
- Specified by:
removeHouse
in interfaceHousesService
-
removeAllHouses
public void removeAllHouses()- Specified by:
removeAllHouses
in interfaceHousesService
-