/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/admin/vo/beans/PrintAgentVoBean.java
//#############################################################################
//#                                                                           #
//#  Copyright (C) <2015>  <IMS MAXIMS>                                       #
//#                                                                           #
//#  This program is free software: you can redistribute it and/or modify     #
//#  it under the terms of the GNU Affero General Public License as           #
//#  published by the Free Software Foundation, either version 3 of the       #
//#  License, or (at your option) any later version.                          # 
//#                                                                           #
//#  This program is distributed in the hope that it will be useful,          #
//#  but WITHOUT ANY WARRANTY; without even the implied warranty of           #
//#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
//#  GNU Affero General Public License for more details.                      #
//#                                                                           #
//#  You should have received a copy of the GNU Affero General Public License #
//#  along with this program.  If not, see <http://www.gnu.org/licenses/>.    #
//#                                                                           #
//#  IMS MAXIMS provides absolutely NO GUARANTEE OF THE CLINICAL SAFTEY of    #
//#  this program.  Users of this software do so entirely at their own risk.  #
//#  IMS MAXIMS only ensures the Clinical Safety of unaltered run-time        #
//#  software that it builds, deploys and maintains.                          #
//#                                                                           #
//#############################################################################
//#EOH
// This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5589.25814)
// Copyright (C) 1995-2015 IMS MAXIMS. All rights reserved.
// WARNING: DO NOT MODIFY the content of this file

package ims.admin.vo.beans;

public class PrintAgentVoBean extends ims.vo.ValueObjectBean
{
	public PrintAgentVoBean()
	{
	}
	public PrintAgentVoBean(ims.admin.vo.PrintAgentVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.queryserverurl = vo.getQueryServerUrl();
		this.reportserverurl = vo.getReportServerUrl();
		this.templatestoprint = vo.getTemplatesToPrint() == null ? null : vo.getTemplatesToPrint().getBeanCollection();
		this.description = vo.getDescription();
		this.trigger = vo.getTrigger();
		this.lastsuccessfulrundatetime = vo.getLastSuccessfulRunDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getLastSuccessfulRunDateTime().getBean();
		this.lastrundatetime = vo.getLastRunDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getLastRunDateTime().getBean();
		this.jobtype = vo.getJobType() == null ? null : (ims.vo.LookupInstanceBean)vo.getJobType().getBean();
		this.isactive = vo.getIsActive();
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.dnaapptsinlastxhrs = vo.getDNAApptsInLastXhrs();
		this.noofrecordsupdated = vo.getNoOfRecordsUpdated();
		this.locationtoprintfor = vo.getLocationToPrintFor() == null ? null : (ims.core.vo.beans.LocSiteLiteVoBean)vo.getLocationToPrintFor().getBean();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.admin.vo.PrintAgentVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.queryserverurl = vo.getQueryServerUrl();
		this.reportserverurl = vo.getReportServerUrl();
		this.templatestoprint = vo.getTemplatesToPrint() == null ? null : vo.getTemplatesToPrint().getBeanCollection();
		this.description = vo.getDescription();
		this.trigger = vo.getTrigger();
		this.lastsuccessfulrundatetime = vo.getLastSuccessfulRunDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getLastSuccessfulRunDateTime().getBean();
		this.lastrundatetime = vo.getLastRunDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean)vo.getLastRunDateTime().getBean();
		this.jobtype = vo.getJobType() == null ? null : (ims.vo.LookupInstanceBean)vo.getJobType().getBean();
		this.isactive = vo.getIsActive();
		this.sysinfo = vo.getSysInfo() == null ? null : (ims.vo.SysInfoBean)vo.getSysInfo().getBean();
		this.dnaapptsinlastxhrs = vo.getDNAApptsInLastXhrs();
		this.noofrecordsupdated = vo.getNoOfRecordsUpdated();
		this.locationtoprintfor = vo.getLocationToPrintFor() == null ? null : (ims.core.vo.beans.LocSiteLiteVoBean)vo.getLocationToPrintFor().getBean(map);
	}

	public ims.admin.vo.PrintAgentVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.admin.vo.PrintAgentVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.admin.vo.PrintAgentVo vo = null;
		if(map != null)
			vo = (ims.admin.vo.PrintAgentVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.admin.vo.PrintAgentVo();
			map.addValueObject(this, vo);
			vo.populate(map, this);
		}
		return vo;
	}

	public Integer getId()
	{
		return this.id;
	}
	public void setId(Integer value)
	{
		this.id = value;
	}
	public int getVersion()
	{
		return this.version;
	}
	public void setVersion(int value)
	{
		this.version = value;
	}
	public String getQueryServerUrl()
	{
		return this.queryserverurl;
	}
	public void setQueryServerUrl(String value)
	{
		this.queryserverurl = value;
	}
	public String getReportServerUrl()
	{
		return this.reportserverurl;
	}
	public void setReportServerUrl(String value)
	{
		this.reportserverurl = value;
	}
	public ims.admin.vo.beans.TemplatePrinterVoBean[] getTemplatesToPrint()
	{
		return this.templatestoprint;
	}
	public void setTemplatesToPrint(ims.admin.vo.beans.TemplatePrinterVoBean[] value)
	{
		this.templatestoprint = value;
	}
	public String getDescription()
	{
		return this.description;
	}
	public void setDescription(String value)
	{
		this.description = value;
	}
	public String getTrigger()
	{
		return this.trigger;
	}
	public void setTrigger(String value)
	{
		this.trigger = value;
	}
	public ims.framework.utils.beans.DateTimeBean getLastSuccessfulRunDateTime()
	{
		return this.lastsuccessfulrundatetime;
	}
	public void setLastSuccessfulRunDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.lastsuccessfulrundatetime = value;
	}
	public ims.framework.utils.beans.DateTimeBean getLastRunDateTime()
	{
		return this.lastrundatetime;
	}
	public void setLastRunDateTime(ims.framework.utils.beans.DateTimeBean value)
	{
		this.lastrundatetime = value;
	}
	public ims.vo.LookupInstanceBean getJobType()
	{
		return this.jobtype;
	}
	public void setJobType(ims.vo.LookupInstanceBean value)
	{
		this.jobtype = value;
	}
	public Boolean getIsActive()
	{
		return this.isactive;
	}
	public void setIsActive(Boolean value)
	{
		this.isactive = value;
	}
	public ims.vo.SysInfoBean getSysInfo()
	{
		return this.sysinfo;
	}
	public void setSysInfo(ims.vo.SysInfoBean value)
	{
		this.sysinfo = value;
	}
	public Integer getDNAApptsInLastXhrs()
	{
		return this.dnaapptsinlastxhrs;
	}
	public void setDNAApptsInLastXhrs(Integer value)
	{
		this.dnaapptsinlastxhrs = value;
	}
	public Integer getNoOfRecordsUpdated()
	{
		return this.noofrecordsupdated;
	}
	public void setNoOfRecordsUpdated(Integer value)
	{
		this.noofrecordsupdated = value;
	}
	public ims.core.vo.beans.LocSiteLiteVoBean getLocationToPrintFor()
	{
		return this.locationtoprintfor;
	}
	public void setLocationToPrintFor(ims.core.vo.beans.LocSiteLiteVoBean value)
	{
		this.locationtoprintfor = value;
	}

	private Integer id;
	private int version;
	private String queryserverurl;
	private String reportserverurl;
	private ims.admin.vo.beans.TemplatePrinterVoBean[] templatestoprint;
	private String description;
	private String trigger;
	private ims.framework.utils.beans.DateTimeBean lastsuccessfulrundatetime;
	private ims.framework.utils.beans.DateTimeBean lastrundatetime;
	private ims.vo.LookupInstanceBean jobtype;
	private Boolean isactive;
	private ims.vo.SysInfoBean sysinfo;
	private Integer dnaapptsinlastxhrs;
	private Integer noofrecordsupdated;
	private ims.core.vo.beans.LocSiteLiteVoBean locationtoprintfor;
}
