/FileExtraction/Java_unseen/IMS-MAXIMS_openMAXIMS/Source Library/openmaxims_workspace/ValueObjects/src/ims/dtomove/vo/beans/SessionVoBean.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.dtomove.vo.beans;

public class SessionVoBean extends ims.vo.ValueObjectBean
{
	public SessionVoBean()
	{
	}
	public SessionVoBean(ims.dtomove.vo.SessionVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.profile_id = vo.getProfile_id();
		this.group_id = vo.getGroup_id();
		this.activityid = vo.getActivityId();
		this.session_date = vo.getSession_date() == null ? null : (ims.framework.utils.beans.DateBean)vo.getSession_date().getBean();
		this.start_time = vo.getStart_time();
		this.end_time = vo.getEnd_time();
		this.max_appts = vo.getMax_appts();
		this.lastapptinterval = vo.getLastApptInterval();
		this.remappts = vo.getRemAppts();
		this.internallocid = vo.getInternalLocId();
		this.tci_rounding = vo.getTci_rounding();
		this.timerem = vo.getTimeRem();
		this.active = vo.getActive();
		this.state = vo.getState();
		this.duration = vo.getDuration();
		this.reason = vo.getReason();
		this.modindicator = vo.getModIndicator();
		this.mininterval = vo.getMinInterval();
		this.description = vo.getDescription();
		this.ad_hoc = vo.getAd_hoc();
		if(vo.getBooking_rights() != null)
		{
			this.booking_rights = new ims.vo.RefVoBean[vo.getBooking_rights().size()];
			for(int booking_rights_i = 0; booking_rights_i < vo.getBooking_rights().size(); booking_rights_i++)
			{
				this.booking_rights[booking_rights_i] = new ims.vo.RefVoBean(vo.getBooking_rights().get(booking_rights_i).getBoId(),vo.getBooking_rights().get(booking_rights_i).getBoVersion());
			}
		}
		if(vo.getExclTimes() != null)
		{
			this.excltimes = new ims.vo.RefVoBean[vo.getExclTimes().size()];
			for(int excltimes_i = 0; excltimes_i < vo.getExclTimes().size(); excltimes_i++)
			{
				this.excltimes[excltimes_i] = new ims.vo.RefVoBean(vo.getExclTimes().get(excltimes_i).getBoId(),vo.getExclTimes().get(excltimes_i).getBoVersion());
			}
		}
		this.sessiondetail = vo.getSessionDetail() == null ? null : vo.getSessionDetail().getBeanCollection();
		if(vo.getActions() != null)
		{
			this.actions = new ims.vo.RefVoBean[vo.getActions().size()];
			for(int actions_i = 0; actions_i < vo.getActions().size(); actions_i++)
			{
				this.actions[actions_i] = new ims.vo.RefVoBean(vo.getActions().get(actions_i).getBoId(),vo.getActions().get(actions_i).getBoVersion());
			}
		}
		if(vo.getListOwner() != null)
		{
			this.listowner = new ims.vo.RefVoBean[vo.getListOwner().size()];
			for(int listowner_i = 0; listowner_i < vo.getListOwner().size(); listowner_i++)
			{
				this.listowner[listowner_i] = new ims.vo.RefVoBean(vo.getListOwner().get(listowner_i).getBoId(),vo.getListOwner().get(listowner_i).getBoVersion());
			}
		}
	}

	public void populate(ims.vo.ValueObjectBeanMap map, ims.dtomove.vo.SessionVo vo)
	{
		this.id = vo.getBoId();
		this.version = vo.getBoVersion();
		this.profile_id = vo.getProfile_id();
		this.group_id = vo.getGroup_id();
		this.activityid = vo.getActivityId();
		this.session_date = vo.getSession_date() == null ? null : (ims.framework.utils.beans.DateBean)vo.getSession_date().getBean();
		this.start_time = vo.getStart_time();
		this.end_time = vo.getEnd_time();
		this.max_appts = vo.getMax_appts();
		this.lastapptinterval = vo.getLastApptInterval();
		this.remappts = vo.getRemAppts();
		this.internallocid = vo.getInternalLocId();
		this.tci_rounding = vo.getTci_rounding();
		this.timerem = vo.getTimeRem();
		this.active = vo.getActive();
		this.state = vo.getState();
		this.duration = vo.getDuration();
		this.reason = vo.getReason();
		this.modindicator = vo.getModIndicator();
		this.mininterval = vo.getMinInterval();
		this.description = vo.getDescription();
		this.ad_hoc = vo.getAd_hoc();
		if(vo.getBooking_rights() != null)
		{
			this.booking_rights = new ims.vo.RefVoBean[vo.getBooking_rights().size()];
			for(int booking_rights_i = 0; booking_rights_i < vo.getBooking_rights().size(); booking_rights_i++)
			{
				this.booking_rights[booking_rights_i] = new ims.vo.RefVoBean(vo.getBooking_rights().get(booking_rights_i).getBoId(),vo.getBooking_rights().get(booking_rights_i).getBoVersion());
			}
		}
		if(vo.getExclTimes() != null)
		{
			this.excltimes = new ims.vo.RefVoBean[vo.getExclTimes().size()];
			for(int excltimes_i = 0; excltimes_i < vo.getExclTimes().size(); excltimes_i++)
			{
				this.excltimes[excltimes_i] = new ims.vo.RefVoBean(vo.getExclTimes().get(excltimes_i).getBoId(),vo.getExclTimes().get(excltimes_i).getBoVersion());
			}
		}
		this.sessiondetail = vo.getSessionDetail() == null ? null : vo.getSessionDetail().getBeanCollection();
		if(vo.getActions() != null)
		{
			this.actions = new ims.vo.RefVoBean[vo.getActions().size()];
			for(int actions_i = 0; actions_i < vo.getActions().size(); actions_i++)
			{
				this.actions[actions_i] = new ims.vo.RefVoBean(vo.getActions().get(actions_i).getBoId(),vo.getActions().get(actions_i).getBoVersion());
			}
		}
		if(vo.getListOwner() != null)
		{
			this.listowner = new ims.vo.RefVoBean[vo.getListOwner().size()];
			for(int listowner_i = 0; listowner_i < vo.getListOwner().size(); listowner_i++)
			{
				this.listowner[listowner_i] = new ims.vo.RefVoBean(vo.getListOwner().get(listowner_i).getBoId(),vo.getListOwner().get(listowner_i).getBoVersion());
			}
		}
	}

	public ims.dtomove.vo.SessionVo buildVo()
	{
		return this.buildVo(new ims.vo.ValueObjectBeanMap());
	}

	public ims.dtomove.vo.SessionVo buildVo(ims.vo.ValueObjectBeanMap map)
	{
		ims.dtomove.vo.SessionVo vo = null;
		if(map != null)
			vo = (ims.dtomove.vo.SessionVo)map.getValueObject(this);
		if(vo == null)
		{
			vo = new ims.dtomove.vo.SessionVo();
			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 Integer getProfile_id()
	{
		return this.profile_id;
	}
	public void setProfile_id(Integer value)
	{
		this.profile_id = value;
	}
	public Integer getGroup_id()
	{
		return this.group_id;
	}
	public void setGroup_id(Integer value)
	{
		this.group_id = value;
	}
	public Integer getActivityId()
	{
		return this.activityid;
	}
	public void setActivityId(Integer value)
	{
		this.activityid = value;
	}
	public ims.framework.utils.beans.DateBean getSession_date()
	{
		return this.session_date;
	}
	public void setSession_date(ims.framework.utils.beans.DateBean value)
	{
		this.session_date = value;
	}
	public Integer getStart_time()
	{
		return this.start_time;
	}
	public void setStart_time(Integer value)
	{
		this.start_time = value;
	}
	public Integer getEnd_time()
	{
		return this.end_time;
	}
	public void setEnd_time(Integer value)
	{
		this.end_time = value;
	}
	public Integer getMax_appts()
	{
		return this.max_appts;
	}
	public void setMax_appts(Integer value)
	{
		this.max_appts = value;
	}
	public Integer getLastApptInterval()
	{
		return this.lastapptinterval;
	}
	public void setLastApptInterval(Integer value)
	{
		this.lastapptinterval = value;
	}
	public Integer getRemAppts()
	{
		return this.remappts;
	}
	public void setRemAppts(Integer value)
	{
		this.remappts = value;
	}
	public Integer getInternalLocId()
	{
		return this.internallocid;
	}
	public void setInternalLocId(Integer value)
	{
		this.internallocid = value;
	}
	public Integer getTci_rounding()
	{
		return this.tci_rounding;
	}
	public void setTci_rounding(Integer value)
	{
		this.tci_rounding = value;
	}
	public Integer getTimeRem()
	{
		return this.timerem;
	}
	public void setTimeRem(Integer value)
	{
		this.timerem = value;
	}
	public String getActive()
	{
		return this.active;
	}
	public void setActive(String value)
	{
		this.active = value;
	}
	public Integer getState()
	{
		return this.state;
	}
	public void setState(Integer value)
	{
		this.state = value;
	}
	public Integer getDuration()
	{
		return this.duration;
	}
	public void setDuration(Integer value)
	{
		this.duration = value;
	}
	public Integer getReason()
	{
		return this.reason;
	}
	public void setReason(Integer value)
	{
		this.reason = value;
	}
	public String getModIndicator()
	{
		return this.modindicator;
	}
	public void setModIndicator(String value)
	{
		this.modindicator = value;
	}
	public Integer getMinInterval()
	{
		return this.mininterval;
	}
	public void setMinInterval(Integer value)
	{
		this.mininterval = value;
	}
	public String getDescription()
	{
		return this.description;
	}
	public void setDescription(String value)
	{
		this.description = value;
	}
	public String getAd_hoc()
	{
		return this.ad_hoc;
	}
	public void setAd_hoc(String value)
	{
		this.ad_hoc = value;
	}
	public ims.vo.RefVoBean[] getBooking_rights()
	{
		return this.booking_rights;
	}
	public void setBooking_rights(ims.vo.RefVoBean[] value)
	{
		this.booking_rights = value;
	}
	public ims.vo.RefVoBean[] getExclTimes()
	{
		return this.excltimes;
	}
	public void setExclTimes(ims.vo.RefVoBean[] value)
	{
		this.excltimes = value;
	}
	public ims.dtomove.vo.beans.SessionDetailVoBean[] getSessionDetail()
	{
		return this.sessiondetail;
	}
	public void setSessionDetail(ims.dtomove.vo.beans.SessionDetailVoBean[] value)
	{
		this.sessiondetail = value;
	}
	public ims.vo.RefVoBean[] getActions()
	{
		return this.actions;
	}
	public void setActions(ims.vo.RefVoBean[] value)
	{
		this.actions = value;
	}
	public ims.vo.RefVoBean[] getListOwner()
	{
		return this.listowner;
	}
	public void setListOwner(ims.vo.RefVoBean[] value)
	{
		this.listowner = value;
	}

	private Integer id;
	private int version;
	private Integer profile_id;
	private Integer group_id;
	private Integer activityid;
	private ims.framework.utils.beans.DateBean session_date;
	private Integer start_time;
	private Integer end_time;
	private Integer max_appts;
	private Integer lastapptinterval;
	private Integer remappts;
	private Integer internallocid;
	private Integer tci_rounding;
	private Integer timerem;
	private String active;
	private Integer state;
	private Integer duration;
	private Integer reason;
	private String modindicator;
	private Integer mininterval;
	private String description;
	private String ad_hoc;
	private ims.vo.RefVoBean[] booking_rights;
	private ims.vo.RefVoBean[] excltimes;
	private ims.dtomove.vo.beans.SessionDetailVoBean[] sessiondetail;
	private ims.vo.RefVoBean[] actions;
	private ims.vo.RefVoBean[] listowner;
}
