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

	public HsRisco()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == HsRiscoDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == HsRiscoDataAuto.TEMA_ID )
		{
			return tema_id;
		}
		else if( fieldName == HsRiscoDataAuto.DESCRIPTION )
		{
			return description;
		}
		else if( fieldName == HsRiscoDataAuto.DELETED_DATE )
		{
			return deleted_date;
		}
		else if( fieldName.equals( HsRiscoDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( HsRiscoDataAuto.TEMA_ID ) )
		{
			return tema_id;
		}
		else if( fieldName.equals( HsRiscoDataAuto.DESCRIPTION ) )
		{
			return description;
		}
		else if( fieldName.equals( HsRiscoDataAuto.DELETED_DATE ) )
		{
			return deleted_date;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == HsRiscoDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == HsRiscoDataAuto.TEMA_ID )
		{
			tema_id = ( Integer ) value;
		}
		else if( fieldName == HsRiscoDataAuto.DESCRIPTION )
		{
			description = ( String ) value;
		}
		else if( fieldName == HsRiscoDataAuto.DELETED_DATE )
		{
			deleted_date = ( java.sql.Timestamp ) value;
		}
		else if( fieldName.equals( HsRiscoDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( HsRiscoDataAuto.TEMA_ID ) )
		{
			tema_id = ( Integer )  value;
		}
		else if( fieldName.equals( HsRiscoDataAuto.DESCRIPTION ) )
		{
			description = ( String )  value;
		}
		else if( fieldName.equals( HsRiscoDataAuto.DELETED_DATE ) )
		{
			deleted_date = ( java.sql.Timestamp )  value;
		}
	}

	public Integer getId()
	{
		return id;
	}

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

	public Integer getTema_id()
	{
		return tema_id;
	}

	public void setTema_id(Integer tema_idValue )
	{
		this.tema_id = tema_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 Class<HsRiscoDataAuto> getOuterClass()
	{
		return HsRiscoDataAuto.class;
	}

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

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