package core.stlmes.server.sale.po.fund;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class SelFundAcctRelationBean
{
	private String Relation = "";
	private String Pact_rea_name = "";
	private String Pact_rea_name_show = "";
	private String Secondaccount = "";
	private String Priority = "";
	private String Importtime = "";
	private String Importor = "";
	private String Isvalid = "";
	private String Deleteor = "";
	private String Deletetime = "";
	private String Lastupdatetime = "";

	public String getRelation()
	{
		return Relation;
	}

	public void setRelation(String relation)
	{
		Relation = relation;
	}

	public String getPact_rea_name()
	{
		return Pact_rea_name;
	}

	public void setPact_rea_name(String pactReaName)
	{
		Pact_rea_name = pactReaName;
	}

	public String getPact_rea_name_show()
	{
		return Pact_rea_name_show;
	}

	public void setPact_rea_name_show(String pactReaNameShow)
	{
		Pact_rea_name_show = pactReaNameShow;
	}

	public String getSecondaccount()
	{
		return Secondaccount;
	}

	public void setSecondaccount(String secondaccount)
	{
		Secondaccount = secondaccount;
	}

	public String getPriority()
	{
		return Priority;
	}

	public void setPriority(String priority)
	{
		Priority = priority;
	}

	public String getImporttime()
	{
		return Importtime;
	}

	public void setImporttime(String importtime)
	{
		Importtime = importtime;
	}

	public String getImportor()
	{
		return Importor;
	}

	public void setImportor(String importor)
	{
		Importor = importor;
	}

	public String getIsvalid()
	{
		return Isvalid;
	}

	public void setIsvalid(String isvalid)
	{
		Isvalid = isvalid;
	}

	public String getDeleteor()
	{
		return Deleteor;
	}

	public void setDeleteor(String deleteor)
	{
		Deleteor = deleteor;
	}

	public String getDeletetime()
	{
		return Deletetime;
	}

	public void setDeletetime(String deletetime)
	{
		Deletetime = deletetime;
	}

	public String getLastupdatetime()
	{
		return Lastupdatetime;
	}

	public void setLastupdatetime(String lastupdatetime)
	{
		Lastupdatetime = lastupdatetime;
	}

	public static List<SelFundAcctRelationBean> convertResultSetToBeanList(
			ResultSet set) throws SQLException
	{
		List<SelFundAcctRelationBean> listbean = new ArrayList<SelFundAcctRelationBean>();
		SelFundAcctRelationBean bean = null;

		while (set.next())
		{
			bean = new SelFundAcctRelationBean();
			try
			{
				bean.setRelation(( String)set.getObject("RELATION"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setPact_rea_name(( String)set.getObject("PACT_REA_NAME"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setPact_rea_name_show(( String)set
						.getObject("PACT_REA_NAME_SHOW"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setSecondaccount(( String)set.getObject("SECONDACCOUNT"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setPriority(( String)set.getObject("PRIORITY"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setImporttime(( String)set.getObject("IMPORTTIME"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setImportor(( String)set.getObject("IMPORTOR"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setIsvalid(( String)set.getObject("ISVALID"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setDeleteor(( String)set.getObject("DELETEOR"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean.setDeletetime(( String)set.getObject("DELETETIME"));
			}
			catch (java.lang.Exception ex)
			{
			}
			try
			{
				bean
						.setLastupdatetime(( String)set
								.getObject("LASTUPDATETIME"));
			}
			catch (java.lang.Exception ex)
			{
			}
			listbean.add(bean);
		}

		try
		{
			set.close();

		}
		catch (java.lang.Exception ex)
		{
		}
		return (listbean.size() == 0 ) ? null : listbean;
	}

	public static SelFundAcctRelationBean convertHashMapToBean(HashMap hs)
	{
		SelFundAcctRelationBean bean = new SelFundAcctRelationBean();
		try
		{
			bean.setRelation(( String)hs.get("RELATION"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setPact_rea_name(( String)hs.get("PACT_REA_NAME"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setPact_rea_name_show(( String)hs.get("PACT_REA_NAME_SHOW"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setSecondaccount(( String)hs.get("SECONDACCOUNT"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setPriority(( String)hs.get("PRIORITY"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setImporttime(( String)hs.get("IMPORTTIME"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setImportor(( String)hs.get("IMPORTOR"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setIsvalid(( String)hs.get("ISVALID"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setDeleteor(( String)hs.get("DELETEOR"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setDeletetime(( String)hs.get("DELETETIME"));
		}
		catch (java.lang.Exception ex)
		{
		}
		try
		{
			bean.setLastupdatetime(( String)hs.get("LASTUPDATETIME"));
		}
		catch (java.lang.Exception ex)
		{
		}
		return bean;
	}

}
