/*
* HsEmailEmpresa.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 HsEmailEmpresa implements JDOInnerObject
{
	private Integer email_id;
	private Integer empresa_id;

	public HsEmailEmpresa()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == HsEmailEmpresaDataAuto.EMAIL_ID )
		{
			return email_id;
		}
		else if( fieldName == HsEmailEmpresaDataAuto.EMPRESA_ID )
		{
			return empresa_id;
		}
		else if( fieldName.equals( HsEmailEmpresaDataAuto.EMAIL_ID ) )
		{
			return email_id;
		}
		else if( fieldName.equals( HsEmailEmpresaDataAuto.EMPRESA_ID ) )
		{
			return empresa_id;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == HsEmailEmpresaDataAuto.EMAIL_ID )
		{
			email_id = ( Integer ) value;
		}
		else if( fieldName == HsEmailEmpresaDataAuto.EMPRESA_ID )
		{
			empresa_id = ( Integer ) value;
		}
		else if( fieldName.equals( HsEmailEmpresaDataAuto.EMAIL_ID ) )
		{
			email_id = ( Integer )  value;
		}
		else if( fieldName.equals( HsEmailEmpresaDataAuto.EMPRESA_ID ) )
		{
			empresa_id = ( Integer )  value;
		}
	}

	public Integer getEmail_id()
	{
		return email_id;
	}

	public void setEmail_id(Integer email_idValue )
	{
		this.email_id = email_idValue;
	}

	public Integer getEmpresa_id()
	{
		return empresa_id;
	}

	public void setEmpresa_id(Integer empresa_idValue )
	{
		this.empresa_id = empresa_idValue;
	}

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

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

	public com.evolute.siprp.server.db.data.siprp_local3.HsEmailEmpresaID getJDOPrimaryKey()
	{
		com.evolute.siprp.server.db.data.siprp_local3.HsEmailEmpresaID id = new com.evolute.siprp.server.db.data.siprp_local3.HsEmailEmpresaID();

		Object obj;
		obj = this.getEmail_id();
		if(obj instanceof JDOObject){
			 obj = ((JDOObject) obj).getInnerObject();
		}
		id.email_id = (Integer)obj;

		obj = this.getEmpresa_id();
		if(obj instanceof JDOObject){
			 obj = ((JDOObject) obj).getInnerObject();
		}
		id.empresa_id = (Integer)obj;

		return id;

	}
}
