/*
 * Created on Dec 20, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package gov.va.med.esr.common.persistent.comms;

//Java
import java.util.ArrayList;

//Framework
import gov.va.med.fw.persistent.DAOException;

//Common
import gov.va.med.esr.common.model.comms.CommsImportStatistics;

/**
 * @author DNS   TSAIG
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public interface ImportFileDAO {
    
    //defining some constants
	static final String FILE_PREFIX = "W";
	static final String ERROR_FILE_EXTENSION = ".err";
	static final String MAILED_FILE_EXTENSION = ".adr";
	static final String REJECT_FILE_EXTENSION = ".rej";
	static final String RETURNED_FILE_EXTENSION = ".ret";	
	static final String FIELD_SEPERATOR = "\\^";
	
	public String getAacFilePath();
	public void setAacFilePath(String filePath);
	public String getCmsFilePath();
	public void setCmsFilePath(String filePath);
	
	public ArrayList readErrorFile(CommsImportStatistics stat) throws DAOException;
	public ArrayList readRejectFile(CommsImportStatistics stat) throws DAOException;
	public ArrayList readMailedFile(CommsImportStatistics stat) throws DAOException;

	public ArrayList readCmsErrorFile(CommsImportStatistics stat) throws DAOException;
	public ArrayList readCmsRejectFile(CommsImportStatistics stat) throws DAOException;
	public ArrayList readCmsMailedFile(CommsImportStatistics stat) throws DAOException;	
	public ArrayList readCmsReturnedMailFile(CommsImportStatistics stat) throws DAOException;	
}
