Няма описание

757827c99b9f056791bba7cf5177c27f11ee03c9.svn-base 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package com.rdlze.radializebase.interfaces;
  2. import java.sql.SQLException;
  3. import java.sql.Timestamp;
  4. import java.text.ParseException;
  5. import java.util.concurrent.ConcurrentLinkedQueue;
  6. import com.rdlze.radializeutils.objects.MusicInfo;
  7. import com.rdlze.radializeutils.objects.RadioStreamingMetadata;
  8. import com.rdlze.radializeutils.objects.UpdateThreadBean;
  9. public interface InterfaceCollector {
  10. public int returnRadioIdFromRadioList10(int radioIdList10)
  11. throws SQLException;
  12. public String returnArtistName(int artistId) throws SQLException;
  13. public abstract int checkArtist(String artistName) throws SQLException;
  14. public MusicInfo returnSongInfoFromList10(int songIdList10)
  15. throws SQLException;
  16. public abstract int checkSong(String songName, int artistId)
  17. throws SQLException;
  18. public abstract int checkMedia(String media, int artistId, int songId)
  19. throws SQLException;
  20. public abstract int insertArtist(String artistName,
  21. String artistMusicBrainzId) throws SQLException;
  22. public abstract int insertSong(int i, String s, String musicBrainzSongId)
  23. throws SQLException;
  24. public abstract int insertMedia(String name, int artistId, int songId,
  25. String musicBrainzArtistId, String musicBrainzSongId)
  26. throws Exception;
  27. public abstract void rejectMedia(UpdateThreadBean b) throws SQLException;
  28. // public abstract boolean checkPlayNow(int i, int j, int k) throws
  29. // SQLException;
  30. // public abstract boolean checkRadioPlayNow(int i) throws SQLException;
  31. // public abstract void updatePlayNow(int i, int j, int k, String s, String
  32. // s1)throws SQLException;
  33. // public abstract void insertPlayNow(int i, int j, int k, String s, String
  34. // s1) throws SQLException;
  35. public abstract void saveCollect(
  36. RadioStreamingMetadata radiostreamingmetadata) throws SQLException,
  37. ParseException;
  38. // public abstract void deletePlayNow(int idRadio) throws SQLException;
  39. public abstract boolean insertMediaFile(int songId, int mediaSource,
  40. int providerId, String name, String path) throws SQLException;
  41. public abstract boolean recommendSongForEvent(int songId, int eventId,
  42. int momentId, int userId, Timestamp timeToPlay) throws SQLException;
  43. public abstract boolean checkIfMediaFileHasBeenAlreadyInserted(int songId,
  44. int mediaSource, int providerId) throws SQLException;
  45. public abstract Integer[] insertSongAndMedia(int artistId, String songName,
  46. String musicBrainzSongId, String media, String musicBrainzArtistId,
  47. boolean production) throws SQLException;
  48. public abstract Integer[] insertArtistSongAndMedia(String artistName,
  49. String songName, String musicBrainzSongId, String mediaName,
  50. String artistIdMusicBrainz, boolean production) throws SQLException;
  51. public void saveCollect(ConcurrentLinkedQueue<RadioStreamingMetadata> rsms) throws SQLException, ClassNotFoundException;
  52. }