/*
* HsRelatorioPosto.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 HsRelatorioPosto implements JDOInnerObject
{
	private Integer id;
	private String description;
	private Integer area_id;
	private java.sql.Timestamp deleted_date;
	private Boolean is_principal;

	public HsRelatorioPosto()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == HsRelatorioPostoDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == HsRelatorioPostoDataAuto.DESCRIPTION )
		{
			return description;
		}
		else if( fieldName == HsRelatorioPostoDataAuto.AREA_ID )
		{
			return area_id;
		}
		else if( fieldName == HsRelatorioPostoDataAuto.DELETED_DATE )
		{
			return deleted_date;
		}
		else if( fieldName == HsRelatorioPostoDataAuto.IS_PRINCIPAL )
		{
			return is_principal;
		}
		else if( fieldName.equals( HsRelatorioPostoDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( HsRelatorioPostoDataAuto.DESCRIPTION ) )
		{
			return description;
		}
		else if( fieldName.equals( HsRelatorioPostoDataAuto.AREA_ID ) )
		{
			return area_id;
		}
		else if( fieldName.equals( HsRelatorioPostoDataAuto.DELETED_DATE ) )
		{
			return deleted_date;
		}
		else if( fieldName.equals( HsRelatorioPostoDataAuto.IS_PRINCIPAL ) )
		{
			return is_principal;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == HsRelatorioPostoDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == HsRelatorioPostoDataAuto.DESCRIPTION )
		{
			description = ( String ) value;
		}
		else if( fieldName == HsRelatorioPostoDataAuto.AREA_ID )
		{
			area_id = ( Integer ) value;
		}
		else if( fieldName == HsRelatorioPostoDataAuto.DELETED_DATE )
		{
			deleted_date = ( java.sql.Timestamp ) value;
		}
		else if( fieldName == HsRelatorioPostoDataAuto.IS_PRINCIPAL )
		{
			is_principal = ( Boolean ) value;
		}
		else if( fieldName.equals( HsRelatorioPostoDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( HsRelatorioPostoDataAuto.DESCRIPTION ) )
		{
			description = ( String )  value;
		}
		else if( fieldName.equals( HsRelatorioPostoDataAuto.AREA_ID ) )
		{
			area_id = ( Integer )  value;
		}
		else if( fieldName.equals( HsRelatorioPostoDataAuto.DELETED_DATE ) )
		{
			deleted_date = ( java.sql.Timestamp )  value;
		}
		else if( fieldName.equals( HsRelatorioPostoDataAuto.IS_PRINCIPAL ) )
		{
			is_principal = ( Boolean )  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 getArea_id()
	{
		return area_id;
	}

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

	public java.sql.Timestamp getDeleted_date()
	{
		return deleted_date;
	}

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

	public Boolean getIs_principal()
	{
		return is_principal;
	}

	public void setIs_principal(Boolean is_principalValue )
	{
		this.is_principal = is_principalValue;
	}

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

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

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