/*
* HsEmail.java
*
* Generated by com.evutils.codegen.JDOObjectGenerator
*
* Use but DON'T TOUCH
*/
package com.evolute.siprp.server.db.data.siprp_local3;

import com.evolute.utils.jdo.*;

public final class HsEmail implements JDOInnerObject
{
	private Integer id;
	private String email;

	public HsEmail()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == HsEmailDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == HsEmailDataAuto.EMAIL )
		{
			return email;
		}
		else if( fieldName.equals( HsEmailDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( HsEmailDataAuto.EMAIL ) )
		{
			return email;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == HsEmailDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == HsEmailDataAuto.EMAIL )
		{
			email = ( String ) value;
		}
		else if( fieldName.equals( HsEmailDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( HsEmailDataAuto.EMAIL ) )
		{
			email = ( String )  value;
		}
	}

	public Integer getId()
	{
		return id;
	}

	public void setId(Integer idValue )
	{
		this.id = idValue;
	}

	public String getEmail()
	{
		return email;
	}

	public void setEmail(String emailValue )
	{
		this.email = emailValue;
	}

	public Class<HsEmailDataAuto> getOuterClass()
	{
		return HsEmailDataAuto.class;
	}

	public HsEmailDataAuto getOuterClassInstance()
	{
		HsEmailDataAuto outerObj = new HsEmailDataAuto();
		outerObj.setInnerObject(this);
		return outerObj;
	}

	public Integer getJDOPrimaryKey()
	{
		Object obj = this.getId();
		if(obj instanceof JDOObject){
			 obj = ((JDOObject) obj).getInnerObject();
		}
		return (Integer) obj;
	}
}
