/*
* HsRelatorioArea.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 HsRelatorioArea implements JDOInnerObject
{
	private Integer id;
	private String description;
	private java.sql.Timestamp deleted_date;
	private Integer relatorio_id;
	private Integer ordem;

	public HsRelatorioArea()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == HsRelatorioAreaDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == HsRelatorioAreaDataAuto.DESCRIPTION )
		{
			return description;
		}
		else if( fieldName == HsRelatorioAreaDataAuto.DELETED_DATE )
		{
			return deleted_date;
		}
		else if( fieldName == HsRelatorioAreaDataAuto.RELATORIO_ID )
		{
			return relatorio_id;
		}
		else if( fieldName == HsRelatorioAreaDataAuto.ORDEM )
		{
			return ordem;
		}
		else if( fieldName.equals( HsRelatorioAreaDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( HsRelatorioAreaDataAuto.DESCRIPTION ) )
		{
			return description;
		}
		else if( fieldName.equals( HsRelatorioAreaDataAuto.DELETED_DATE ) )
		{
			return deleted_date;
		}
		else if( fieldName.equals( HsRelatorioAreaDataAuto.RELATORIO_ID ) )
		{
			return relatorio_id;
		}
		else if( fieldName.equals( HsRelatorioAreaDataAuto.ORDEM ) )
		{
			return ordem;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == HsRelatorioAreaDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == HsRelatorioAreaDataAuto.DESCRIPTION )
		{
			description = ( String ) value;
		}
		else if( fieldName == HsRelatorioAreaDataAuto.DELETED_DATE )
		{
			deleted_date = ( java.sql.Timestamp ) value;
		}
		else if( fieldName == HsRelatorioAreaDataAuto.RELATORIO_ID )
		{
			relatorio_id = ( Integer ) value;
		}
		else if( fieldName == HsRelatorioAreaDataAuto.ORDEM )
		{
			ordem = ( Integer ) value;
		}
		else if( fieldName.equals( HsRelatorioAreaDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( HsRelatorioAreaDataAuto.DESCRIPTION ) )
		{
			description = ( String )  value;
		}
		else if( fieldName.equals( HsRelatorioAreaDataAuto.DELETED_DATE ) )
		{
			deleted_date = ( java.sql.Timestamp )  value;
		}
		else if( fieldName.equals( HsRelatorioAreaDataAuto.RELATORIO_ID ) )
		{
			relatorio_id = ( Integer )  value;
		}
		else if( fieldName.equals( HsRelatorioAreaDataAuto.ORDEM ) )
		{
			ordem = ( 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 java.sql.Timestamp getDeleted_date()
	{
		return deleted_date;
	}

	public void setDeleted_date(java.sql.Timestamp deleted_dateValue )
	{
		this.deleted_date = deleted_dateValue;
	}

	public Integer getRelatorio_id()
	{
		return relatorio_id;
	}

	public void setRelatorio_id(Integer relatorio_idValue )
	{
		this.relatorio_id = relatorio_idValue;
	}

	public Integer getOrdem()
	{
		return ordem;
	}

	public void setOrdem(Integer ordemValue )
	{
		this.ordem = ordemValue;
	}

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

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

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