package database;

import java.util.ArrayList;
import java.util.List;

import interfaces.IDALpug;
import models.GenreTag;
import models.Song;

public class DummyDALpug implements IDALpug
{	
	private static Song dummySong;
	private static List<Song> dummySongCollection;
	
	public DummyDALpug()
	{
		if(dummySong == null)
		{
			String fileName = "LooneyToonsEnd.mp3";
			String path = System.getProperty("user.dir") + "\\src\\main\\java\\tempFiles\\" + fileName;
			dummySong = new Song("LooneyToons", null, path);
			dummySongCollection = new ArrayList<Song>();
			dummySongCollection.add(dummySong);
		}
	}

	
	@Override
	public Long add(Song song) 
	{
		return 1l;
	}

	@Override
	public Song getById(Long id) 
	{
		return dummySong;
	}

	@Override
	public Song getByTitle(String title)
	{
		return dummySong;
	}

	@Override
	public List<Song> getByTag(GenreTag tag)
	{
		return dummySongCollection;
	}

	@Override
	public List<Song> getByTags(List<GenreTag> tag) 
	{
		return dummySongCollection;
	}

	@Override
	public List<Song> getByLyrics(String Lyrics) 
	{
		return dummySongCollection;
	}

}

@@ -382,61 +382,28 @@
 h = 
-System.getProperty(%22user.dir%22) + %22%5C%5Csrc%5C%5C
+%22//src//
 main
-%5C%5C
+//
 java
-%5C%5C
+//
 temp
@@ -411,10 +411,10 @@
 iles
-%5C%5C
+//
 %22 + 

Set DummayDall to pull LooneyToones.mp3 file - BA