// This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5007.25751)
// Copyright (C) 1995-2014 IMS MAXIMS. All rights reserved.
// WARNING: DO NOT MODIFY the content of this file

package ims.RefMan.vo.beans;

public class ContractConfigurationVoBean extends ims.vo.ValueObjectBean
{
	public ContractConfigurationVoBean()
	{
	}
	public ContractConfigurationVoBean(ims.RefMan.vo.ContractConfigurationVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.contractid = vo.getContractId();
		this.contractorganisation = vo.getContractOrganisation() == null ? null : new ims.vo.RefVoBean(vo.getContractOrganisation().getBoId(), vo.getContractOrganisation().getBoVersion());
		this.contractname = vo.getContractName();
		this.status = vo.getStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getStatus().getBean();
		this.servicelocations = vo.getServiceLocations() == null ? null : vo.getServiceLocations().getBeanCollection();
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.RefMan.vo.ContractConfigurationVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.contractid = vo.getContractId();
		this.contractorganisation = vo.getContractOrganisation() == null ? null : new ims.vo.RefVoBean(vo.getContractOrganisation().getBoId(), vo.getContractOrganisation().getBoVersion());
		this.contractname = vo.getContractName();
		this.status = vo.getStatus() == null ? null : (ims.vo.LookupInstanceBean)vo.getStatus().getBean();
		this.servicelocations = vo.getServiceLocations() == null ? null : vo.getServiceLocations().getBeanCollection();
	}

	public ims.RefMan.vo.ContractConfigurationVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.RefMan.vo.ContractConfigurationVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.RefMan.vo.ContractConfigurationVo vo = null;
		if(map != null)
			vo = (ims.RefMan.vo.ContractConfigurationVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.RefMan.vo.ContractConfigurationVo();
			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 getContractId()
	{
		return this.contractid;
	}
	public void setContractId(String value)
	{
		this.contractid = value;
	}
	public ims.vo.RefVoBean getContractOrganisation()
	{
		return this.contractorganisation;
	}
	public void setContractOrganisation(ims.vo.RefVoBean value)
	{
		this.contractorganisation = value;
	}
	public String getContractName()
	{
		return this.contractname;
	}
	public void setContractName(String value)
	{
		this.contractname = value;
	}
	public ims.vo.LookupInstanceBean getStatus()
	{
		return this.status;
	}
	public void setStatus(ims.vo.LookupInstanceBean value)
	{
		this.status = value;
	}
	public ims.RefMan.vo.beans.ContractServiceLocationsConfigVoBean[] getServiceLocations()
	{
		return this.servicelocations;
	}
	public void setServiceLocations(ims.RefMan.vo.beans.ContractServiceLocationsConfigVoBean[] value)
	{
		this.servicelocations = value;
	}

	private Integer id;
	private int version;
	private String contractid;
	private ims.vo.RefVoBean contractorganisation;
	private String contractname;
	private ims.vo.LookupInstanceBean status;
	private ims.RefMan.vo.beans.ContractServiceLocationsConfigVoBean[] servicelocations;
}
