Class SongsServiceImpl
java.lang.Object
info.ejava.examples.db.jpa.songs.svc.SongsServiceImpl
- All Implemented Interfaces:
SongsService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSong(SongDTO songDTO) voidvoiddeleteSong(int id) org.springframework.data.domain.Page<SongDTO> findReleasedAfter(LocalDate afterDate, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<SongDTO> findSongsMatchingAll(SongDTO probeDTO, org.springframework.data.domain.Pageable pageable) getSong(int id) org.springframework.data.domain.Page<SongDTO> getSongs(org.springframework.data.domain.Pageable pageable) voidupdateSong(int id, SongDTO songDTO)
-
Field Details
-
mapper
-
songsRepo
-
-
Constructor Details
-
SongsServiceImpl
public SongsServiceImpl()
-
-
Method Details
-
createSong
- Specified by:
createSongin interfaceSongsService
-
getSongs
public org.springframework.data.domain.Page<SongDTO> getSongs(org.springframework.data.domain.Pageable pageable) - Specified by:
getSongsin interfaceSongsService
-
getSong
- Specified by:
getSongin interfaceSongsService
-
getRandomSong
- Specified by:
getRandomSongin interfaceSongsService
-
updateSong
- Specified by:
updateSongin interfaceSongsService
-
deleteSong
@Transactional(propagation=REQUIRED) public void deleteSong(int id) - Specified by:
deleteSongin interfaceSongsService
-
findReleasedAfter
public org.springframework.data.domain.Page<SongDTO> findReleasedAfter(LocalDate afterDate, org.springframework.data.domain.Pageable pageable) - Specified by:
findReleasedAfterin interfaceSongsService
-
deleteAllSongs
@Transactional(propagation=REQUIRED) public void deleteAllSongs()- Specified by:
deleteAllSongsin interfaceSongsService
-
findSongsMatchingAll
@Transactional(propagation=SUPPORTS) public org.springframework.data.domain.Page<SongDTO> findSongsMatchingAll(SongDTO probeDTO, org.springframework.data.domain.Pageable pageable) - Specified by:
findSongsMatchingAllin interfaceSongsService
-