Class HousesRepoServiceImpl
java.lang.Object
info.ejava.assignments.db.houserenters.svcjpa.houses.HousesRepoServiceImpl
- 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 is an incomplete implementation of a search method.booleanvoidvoidremoveHouse(String id) updateHouse(String id, HouseDTO updateHouse)
-
Field Details
-
repo
-
mapper
-
-
Constructor Details
-
HousesRepoServiceImpl
public HousesRepoServiceImpl()
-
-
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 is an incomplete implementation of a search method. It will find probe-like searches, and select range searches, but not all-inclusive. JPA Criteria Query is needed to realistiucally implement an all-inclusive dynamic query.- Specified by:
findHousesByin interfaceHousesService- Parameters:
searchParams- to use for searchingpageable- to define the size, offset, and sort order of the results- Returns:
- page of houses as DTOs
-
removeHouse
- Specified by:
removeHousein interfaceHousesService
-
removeAllHouses
public void removeAllHouses()- Specified by:
removeAllHousesin interfaceHousesService
-