package br.com.centralit.citcorpore.negocio;

import java.util.Collection;

import br.com.centralit.citcorpore.bean.ContratoHistoricoDTO;
import br.com.centralit.citcorpore.integracao.ContratoHistoricoDao;
import br.com.citframework.excecao.PersistenceException;
import br.com.citframework.service.CrudServiceImpl;

/**
 * 
 * @author ibimon.morais
 * @22/09/2015
 */
@SuppressWarnings({"unchecked"})
public class ContratoHistoricoServiceEjb extends CrudServiceImpl implements ContratoHistoricoService {

    private ContratoHistoricoDao dao;

    @Override
    protected ContratoHistoricoDao getDao() {
        if (dao == null) {
            dao = new ContratoHistoricoDao();
        }
        return dao;
    }
    
    /**
     * @author ibimon.morais
     * @param parm 
     * @22/09/2015
     */
    public Collection<ContratoHistoricoDTO> findByIdContratoOrderHist(final Integer parm) throws PersistenceException{
    	Collection<ContratoHistoricoDTO> listaRetorno = this.getDao().findByIdContratoOrderHist(parm);
    	return listaRetorno;
    }

}
