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

	public HsPosto()
	{
	}

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

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == HsPostoDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == HsPostoDataAuto.AREA_ID )
		{
			area_id = ( Integer ) value;
		}
		else if( fieldName == HsPostoDataAuto.DESCRIPTION )
		{
			description = ( String ) value;
		}
		else if( fieldName == HsPostoDataAuto.DELETED_DATE )
		{
			deleted_date = ( java.sql.Timestamp ) value;
		}
		else if( fieldName == HsPostoDataAuto.IS_PRINCIPAL )
		{
			is_principal = ( Boolean ) value;
		}
		else if( fieldName.equals( HsPostoDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( HsPostoDataAuto.AREA_ID ) )
		{
			area_id = ( Integer )  value;
		}
		else if( fieldName.equals( HsPostoDataAuto.DESCRIPTION ) )
		{
			description = ( String )  value;
		}
		else if( fieldName.equals( HsPostoDataAuto.DELETED_DATE ) )
		{
			deleted_date = ( java.sql.Timestamp )  value;
		}
		else if( fieldName.equals( HsPostoDataAuto.IS_PRINCIPAL ) )
		{
			is_principal = ( Boolean )  value;
		}
	}

	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 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 Boolean getIs_principal()
	{
		return is_principal;
	}

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

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

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

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