package ar.edu.unrc.exa.dc.dose2016.riocuartobandasderock.dao;

import java.util.List;
import ar.edu.unrc.exa.dc.dose2016.riocuartobandasderock.model.Album;

/**
 * @author Dose Team 2016
 */

public interface AlbumDAO {
	
	/**
	 * @param id
	 * @return 
	 */
	public Album findById(int id);
	
	/**
	 * @return All albums 
	 */
	public List<Album> getAllAlbums();	
	
	/**
	 * @param bandName
	 * @return 
	 */
	public List<Album> findByBandName(String bandName);
	
	/**
	 * @param name
	 * @return  
	 */ 
	public Album findByName(String name);
	
	/**
	 * @param year
	 * @return
	 */
	public List<Album> findByYear(int year);
	
	/**
	 * @param genere
	 * @return
	 */
	public List<Album> findByGenere(String genere);

	/**
	 * @param recordLabel
	 * @return
	 */
	public List<Album> findByRecordLabel(String recordLabel);
	
	/**
	 * @param album
	 */
	public void createAlbum(Album album);
	
	/**
	 * @param album
	 */
	public void updateAlbum(Album album);
	
	/**
	 * @param album
	 */
	public void deleteAlbum(Album album);
	
}

@@ -80,16 +80,41 @@
 l.List;%0A
+//import java.util.Date;%0A
 import a
@@ -174,16 +174,85 @@
 l.Album;
+%0Aimport ar.edu.unrc.exa.dc.dose2016.riocuartobandasderock.model.Song;
 %0A%0A/**%0A *
@@ -909,32 +909,531 @@
 dLabel);%0A%09%0A%09/**%0A
+%09 * @param producer%0A%09 * @return%0A%09 */%0A%09public List%3CAlbum%3E findByProducer(String producer);%0A%09%0A%09/**%0A%09 * @param duration%0A%09 * @return%0A%09 */%0A%09public List%3CAlbum%3E findByDuration(int duration);%0A%09%0A%09/**%0A%09 * @param song%0A%09 * @return%0A%09 */%0A%09public List%3CAlbum%3E findBySong(Song song);%0A%09%0A//%09/**%0A//%09 * @param releaseDate%0A//%09 * @return%0A//%09 */%0A//%09public List%3CAlbum%3E findByReleaseDate(Date releaseDate);%0A%09%0A//%09/**%0A//%09 * @param recordDate%0A//%09 * @return%0A//%09 */%0A//%09public List%3CAlbum%3E findByRecordDate(Date recordDate);%0A%09%0A%09/**%0A
 %09 * @param album

add more profiles