com.bff.musicjukebox.data
Class SongDAOMPD

java.lang.Object
  extended by com.bff.musicjukebox.data.SongDAOMPD
All Implemented Interfaces:
SongDAO

public class SongDAOMPD
extends java.lang.Object
implements SongDAO


Constructor Summary
SongDAOMPD()
          Creates a new instance of SongQueryMPD
 
Method Summary
 int getAlbumCount()
           
 int getArtistCount()
           
 long getLastUpdateTime()
           
 long getPlaytime()
           
 int getSongCount()
           
 java.util.Collection<java.lang.String> listAlbumsByArtist(java.lang.String artist)
           
 java.util.Collection<java.lang.String> listAllAlbums()
           
 java.util.Collection<java.lang.String> listAllArtists()
           
 java.util.Collection<java.lang.String> listAllGenres()
           
 java.util.Collection listAllSongs()
           
 java.util.Collection listAllYears()
           
 java.util.Collection<Song> listSongsByAlbum(java.lang.String artist, java.lang.String album)
           
 java.util.Collection<Song> listSongsByArtist(java.lang.String artist)
           
 java.util.Collection<Song> searchSongs(Song songCriteria)
           
 java.util.Collection<Song> searchSongs(Song songCriteria, int startYear, int endYear)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SongDAOMPD

public SongDAOMPD()
           throws java.net.UnknownHostException,
                  org.bff.javampd.exception.MPDException
Creates a new instance of SongQueryMPD

Throws:
java.net.UnknownHostException
org.bff.javampd.exception.MPDException
Method Detail

listAllSongs

public java.util.Collection listAllSongs()
                                  throws org.bff.javampd.exception.MPDException
Specified by:
listAllSongs in interface SongDAO
Throws:
org.bff.javampd.exception.MPDException

listAllAlbums

public java.util.Collection<java.lang.String> listAllAlbums()
                                                     throws org.bff.javampd.exception.MPDException
Specified by:
listAllAlbums in interface SongDAO
Throws:
org.bff.javampd.exception.MPDException

listAllArtists

public java.util.Collection<java.lang.String> listAllArtists()
                                                      throws org.bff.javampd.exception.MPDException
Specified by:
listAllArtists in interface SongDAO
Throws:
org.bff.javampd.exception.MPDException

listAllGenres

public java.util.Collection<java.lang.String> listAllGenres()
                                                     throws org.bff.javampd.exception.MPDException
Specified by:
listAllGenres in interface SongDAO
Throws:
org.bff.javampd.exception.MPDException

listAllYears

public java.util.Collection listAllYears()
                                  throws org.bff.javampd.exception.MPDException
Specified by:
listAllYears in interface SongDAO
Throws:
org.bff.javampd.exception.MPDException

listSongsByArtist

public java.util.Collection<Song> listSongsByArtist(java.lang.String artist)
                                             throws org.bff.javampd.exception.MPDException
Specified by:
listSongsByArtist in interface SongDAO
Throws:
org.bff.javampd.exception.MPDException

listAlbumsByArtist

public java.util.Collection<java.lang.String> listAlbumsByArtist(java.lang.String artist)
                                                          throws org.bff.javampd.exception.MPDException
Specified by:
listAlbumsByArtist in interface SongDAO
Throws:
org.bff.javampd.exception.MPDException

listSongsByAlbum

public java.util.Collection<Song> listSongsByAlbum(java.lang.String artist,
                                                   java.lang.String album)
                                            throws org.bff.javampd.exception.MPDException
Specified by:
listSongsByAlbum in interface SongDAO
Throws:
org.bff.javampd.exception.MPDException

searchSongs

public java.util.Collection<Song> searchSongs(Song songCriteria)
Specified by:
searchSongs in interface SongDAO

searchSongs

public java.util.Collection<Song> searchSongs(Song songCriteria,
                                              int startYear,
                                              int endYear)
Specified by:
searchSongs in interface SongDAO

getSongCount

public int getSongCount()
Specified by:
getSongCount in interface SongDAO

getArtistCount

public int getArtistCount()
Specified by:
getArtistCount in interface SongDAO

getAlbumCount

public int getAlbumCount()
Specified by:
getAlbumCount in interface SongDAO

getPlaytime

public long getPlaytime()
Specified by:
getPlaytime in interface SongDAO

getLastUpdateTime

public long getLastUpdateTime()
Specified by:
getLastUpdateTime in interface SongDAO