package axis2.tutorial.service;

import java.util.Date;
import java.util.List;

import axis2.tutorial.dao.CDDaoAxisImpl;
import cd.catalog.dao.CDDao;
import cd.catalog.exception.CDDaoException;
import cd.catalog.exception.CDServiceException;
import cd.catalog.mapping.CD;
import cd.catalog.service.CDService;

public class CDServiceAxisImpl implements CDService {

	
	public CDServiceAxisImpl() {}
	
	public CD addToCatalog(CD arg0) throws CDServiceException {
		// TODO Auto-generated method stub
		return null;
	}

	public CD getById(Long arg0) throws CDServiceException {
		CDDao cdDao = new CDDaoAxisImpl();
		try {
			return cdDao.retrieve(arg0);
		} catch (CDDaoException e) {
			throw new CDServiceException("Error while trying to retrieve a CD", e);
		}
	}

	public List<CD> listByArtist(String arg0) throws CDServiceException {
		// TODO Auto-generated method stub
		return null;
	}

	public List<CD> listByName(String arg0) throws CDServiceException {
		// TODO Auto-generated method stub
		return null;
	}

	public void removeFromCatalog(CD arg0) throws CDServiceException {
		// TODO Auto-generated method stub
	}

	public List<CD> searchByCriteria(String arg0, String arg1, Date arg2,
			Date arg3) throws CDServiceException {
		// TODO Auto-generated method stub
		return null;
	}

	public CD updateInCatalog(CD arg0) throws CDServiceException {
		// TODO Auto-generated method stub
		return null;
	}

}