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

	public HsArea()
	{
	}

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

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == HsAreaDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == HsAreaDataAuto.EMPRESA_ID )
		{
			empresa_id = ( Integer ) value;
		}
		else if( fieldName == HsAreaDataAuto.DESCRIPTION )
		{
			description = ( String ) value;
		}
		else if( fieldName == HsAreaDataAuto.DELETED_DATE )
		{
			deleted_date = ( java.sql.Timestamp ) value;
		}
		else if( fieldName == HsAreaDataAuto.ORDEM )
		{
			ordem = ( Integer ) value;
		}
		else if( fieldName.equals( HsAreaDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( HsAreaDataAuto.EMPRESA_ID ) )
		{
			empresa_id = ( Integer )  value;
		}
		else if( fieldName.equals( HsAreaDataAuto.DESCRIPTION ) )
		{
			description = ( String )  value;
		}
		else if( fieldName.equals( HsAreaDataAuto.DELETED_DATE ) )
		{
			deleted_date = ( java.sql.Timestamp )  value;
		}
		else if( fieldName.equals( HsAreaDataAuto.ORDEM ) )
		{
			ordem = ( Integer )  value;
		}
	}

	public Integer getId()
	{
		return id;
	}

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

	public Integer getEmpresa_id()
	{
		return empresa_id;
	}

	public void setEmpresa_id(Integer empresa_idValue )
	{
		this.empresa_id = empresa_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 getOrdem()
	{
		return ordem;
	}

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

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

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

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