/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/admin/vo/beans/GPSearchCriteriaVoBean.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 GPSearchCriteriaVoBean extends ims.vo.ValueObjectBean
{
	public GPSearchCriteriaVoBean()
	{
	}
	public GPSearchCriteriaVoBean(ims.admin.vo.GPSearchCriteriaVo vo)
	{
		this.surname = vo.getSurname();
		this.forename = vo.getForename();
		this.practicename = vo.getPracticeName();
		this.addresscontains = vo.getAddressContains();
		this.codetype = vo.getCodeType() == null ? null : (ims.vo.LookupInstanceBean)vo.getCodeType().getBean();
		this.code = vo.getCode();
		this.status = vo.getStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getStatus().getBean();
		this.aredistinctrectoberetrieved = vo.getAreDistinctRecToBeRetrieved();
		this.practice = vo.getPractice() == null ? null : new ims.vo.RefVoBean(vo.getPractice().getBoId(), vo.getPractice().getBoVersion());
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.admin.vo.GPSearchCriteriaVo vo)
	{
		this.surname = vo.getSurname();
		this.forename = vo.getForename();
		this.practicename = vo.getPracticeName();
		this.addresscontains = vo.getAddressContains();
		this.codetype = vo.getCodeType() == null ? null : (ims.vo.LookupInstanceBean)vo.getCodeType().getBean();
		this.code = vo.getCode();
		this.status = vo.getStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getStatus().getBean();
		this.aredistinctrectoberetrieved = vo.getAreDistinctRecToBeRetrieved();
		this.practice = vo.getPractice() == null ? null : new ims.vo.RefVoBean(vo.getPractice().getBoId(), vo.getPractice().getBoVersion());
	}

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

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

	public String getSurname()
	{
		return this.surname;
	}
	public void setSurname(String value)
	{
		this.surname = value;
	}
	public String getForename()
	{
		return this.forename;
	}
	public void setForename(String value)
	{
		this.forename = value;
	}
	public String getPracticeName()
	{
		return this.practicename;
	}
	public void setPracticeName(String value)
	{
		this.practicename = value;
	}
	public String getAddressContains()
	{
		return this.addresscontains;
	}
	public void setAddressContains(String value)
	{
		this.addresscontains = value;
	}
	public ims.vo.LookupInstanceBean getCodeType()
	{
		return this.codetype;
	}
	public void setCodeType(ims.vo.LookupInstanceBean value)
	{
		this.codetype = value;
	}
	public String getCode()
	{
		return this.code;
	}
	public void setCode(String value)
	{
		this.code = value;
	}
	public ims.vo.LookupInstanceBean getStatus()
	{
		return this.status;
	}
	public void setStatus(ims.vo.LookupInstanceBean value)
	{
		this.status = value;
	}
	public Boolean getAreDistinctRecToBeRetrieved()
	{
		return this.aredistinctrectoberetrieved;
	}
	public void setAreDistinctRecToBeRetrieved(Boolean value)
	{
		this.aredistinctrectoberetrieved = value;
	}
	public ims.vo.RefVoBean getPractice()
	{
		return this.practice;
	}
	public void setPractice(ims.vo.RefVoBean value)
	{
		this.practice = value;
	}

	private String surname;
	private String forename;
	private String practicename;
	private String addresscontains;
	private ims.vo.LookupInstanceBean codetype;
	private String code;
	private ims.vo.LookupInstanceBean status;
	private Boolean aredistinctrectoberetrieved;
	private ims.vo.RefVoBean practice;
}
