/*
* EmailPlanoDeActuacao.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 EmailPlanoDeActuacao implements JDOInnerObject
{
	private Integer id;
	private String description;
	private Integer estabelecimento_id;

	public EmailPlanoDeActuacao()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == EmailPlanoDeActuacaoDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == EmailPlanoDeActuacaoDataAuto.DESCRIPTION )
		{
			return description;
		}
		else if( fieldName == EmailPlanoDeActuacaoDataAuto.ESTABELECIMENTO_ID )
		{
			return estabelecimento_id;
		}
		else if( fieldName.equals( EmailPlanoDeActuacaoDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( EmailPlanoDeActuacaoDataAuto.DESCRIPTION ) )
		{
			return description;
		}
		else if( fieldName.equals( EmailPlanoDeActuacaoDataAuto.ESTABELECIMENTO_ID ) )
		{
			return estabelecimento_id;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == EmailPlanoDeActuacaoDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == EmailPlanoDeActuacaoDataAuto.DESCRIPTION )
		{
			description = ( String ) value;
		}
		else if( fieldName == EmailPlanoDeActuacaoDataAuto.ESTABELECIMENTO_ID )
		{
			estabelecimento_id = ( Integer ) value;
		}
		else if( fieldName.equals( EmailPlanoDeActuacaoDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( EmailPlanoDeActuacaoDataAuto.DESCRIPTION ) )
		{
			description = ( String )  value;
		}
		else if( fieldName.equals( EmailPlanoDeActuacaoDataAuto.ESTABELECIMENTO_ID ) )
		{
			estabelecimento_id = ( Integer )  value;
		}
	}

	public Integer getId()
	{
		return id;
	}

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

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String descriptionValue )
	{
		this.description = descriptionValue;
	}

	public Integer getEstabelecimento_id()
	{
		return estabelecimento_id;
	}

	public void setEstabelecimento_id(Integer estabelecimento_idValue )
	{
		this.estabelecimento_id = estabelecimento_idValue;
	}

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

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

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