Class SongsServiceImpl

java.lang.Object
info.ejava.examples.db.jpa.songs.svc.SongsServiceImpl
All Implemented Interfaces:
SongsService

@Service public class SongsServiceImpl extends Object implements SongsService
  • Field Details

  • Constructor Details

    • SongsServiceImpl

      public SongsServiceImpl()
  • Method Details

    • createSong

      @Transactional(propagation=REQUIRED) public SongDTO createSong(SongDTO songDTO)
      Specified by:
      createSong in interface SongsService
    • getSongs

      public org.springframework.data.domain.Page<SongDTO> getSongs(org.springframework.data.domain.Pageable pageable)
      Specified by:
      getSongs in interface SongsService
    • getSong

      @Transactional(propagation=SUPPORTS) public SongDTO getSong(int id)
      Specified by:
      getSong in interface SongsService
    • getRandomSong

      public SongDTO getRandomSong()
      Specified by:
      getRandomSong in interface SongsService
    • updateSong

      @Transactional(propagation=REQUIRED) public void updateSong(int id, SongDTO songDTO)
      Specified by:
      updateSong in interface SongsService
    • deleteSong

      @Transactional(propagation=REQUIRED) public void deleteSong(int id)
      Specified by:
      deleteSong in interface SongsService
    • findReleasedAfter

      public org.springframework.data.domain.Page<SongDTO> findReleasedAfter(LocalDate afterDate, org.springframework.data.domain.Pageable pageable)
      Specified by:
      findReleasedAfter in interface SongsService
    • deleteAllSongs

      @Transactional(propagation=REQUIRED) public void deleteAllSongs()
      Specified by:
      deleteAllSongs in interface SongsService
    • findSongsMatchingAll

      @Transactional(propagation=SUPPORTS) public org.springframework.data.domain.Page<SongDTO> findSongsMatchingAll(SongDTO probeDTO, org.springframework.data.domain.Pageable pageable)
      Specified by:
      findSongsMatchingAll in interface SongsService