package com.jasamedika.medifirst2000.service.impl;

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

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.jpa.JpaSystemException;
import org.springframework.stereotype.Service;

import com.jasamedika.medifirst2000.converter.AsalRujukanConverter;
import com.jasamedika.medifirst2000.dao.AsalRujukanDao;
import com.jasamedika.medifirst2000.entities.AsalRujukan;
import com.jasamedika.medifirst2000.exception.ServiceVOException;
import com.jasamedika.medifirst2000.service.AsalRujukanService;
import com.jasamedika.medifirst2000.vo.AsalRujukanVO;


/**
 * Implement class for PasienService
 * 
 * @author Adik
 * @param <T>
 */


@Service("asalRujukanService")
public class AsalRujukanServiceImpl extends BaseVoServiceImpl implements AsalRujukanService {

	@Autowired
	private AsalRujukanDao asalRujukanDao;
	
	@Autowired
	private AsalRujukanConverter asalRujukanConverter;
	
	
	@Override
	public Object add(Object vo) throws JpaSystemException, ServiceVOException {
		return null;
	}

	@Override
	public Object update(Object vo) throws JpaSystemException, ServiceVOException {
		return null;
	}

	@Override
	public Boolean delete(Object key) throws JpaSystemException {
		return null;
	}

	@Override
	public Object findById(Object key) throws JpaSystemException {
		return null;
	}

	@Override
	public List findAll() throws JpaSystemException {
		List<AsalRujukanVO> vos=new ArrayList<AsalRujukanVO>();
		List<AsalRujukan> models=(List<AsalRujukan>) asalRujukanDao.findAll();
		asalRujukanConverter.transferListOfModelToListOfVO(models, vos);
		return vos;
	}

	@Override
	public Map findAllWithPageAndLimitAndSortByAndDirectionParameter(Integer page, Integer limit, String sort,
			String dir) {
		return null;
	}

	


}
