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

import com.evolute.utils.jdo.*;

public final class PlanoAreas implements JDOInnerObject
{
	private String descricao;
	private Integer plano_id;
	private Integer id;
	private Integer area_id;

	public PlanoAreas()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == PlanoAreasDataAuto.DESCRICAO )
		{
			return descricao;
		}
		else if( fieldName == PlanoAreasDataAuto.PLANO_ID )
		{
			return plano_id;
		}
		else if( fieldName == PlanoAreasDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == PlanoAreasDataAuto.AREA_ID )
		{
			return area_id;
		}
		else if( fieldName.equals( PlanoAreasDataAuto.DESCRICAO ) )
		{
			return descricao;
		}
		else if( fieldName.equals( PlanoAreasDataAuto.PLANO_ID ) )
		{
			return plano_id;
		}
		else if( fieldName.equals( PlanoAreasDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( PlanoAreasDataAuto.AREA_ID ) )
		{
			return area_id;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == PlanoAreasDataAuto.DESCRICAO )
		{
			descricao = ( String ) value;
		}
		else if( fieldName == PlanoAreasDataAuto.PLANO_ID )
		{
			plano_id = ( Integer ) value;
		}
		else if( fieldName == PlanoAreasDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == PlanoAreasDataAuto.AREA_ID )
		{
			area_id = ( Integer ) value;
		}
		else if( fieldName.equals( PlanoAreasDataAuto.DESCRICAO ) )
		{
			descricao = ( String )  value;
		}
		else if( fieldName.equals( PlanoAreasDataAuto.PLANO_ID ) )
		{
			plano_id = ( Integer )  value;
		}
		else if( fieldName.equals( PlanoAreasDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( PlanoAreasDataAuto.AREA_ID ) )
		{
			area_id = ( Integer )  value;
		}
	}

	public String getDescricao()
	{
		return descricao;
	}

	public void setDescricao(String descricaoValue )
	{
		this.descricao = descricaoValue;
	}

	public Integer getPlano_id()
	{
		return plano_id;
	}

	public void setPlano_id(Integer plano_idValue )
	{
		this.plano_id = plano_idValue;
	}

	public Integer getId()
	{
		return id;
	}

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

	public Integer getArea_id()
	{
		return area_id;
	}

	public void setArea_id(Integer area_idValue )
	{
		this.area_id = area_idValue;
	}

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

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

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