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

	public HsRelatorioRisco()
	{
	}

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

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

	public Integer getId()
	{
		return id;
	}

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

	public Integer getRelatorio_id()
	{
		return relatorio_id;
	}

	public void setRelatorio_id(Integer relatorio_idValue )
	{
		this.relatorio_id = relatorio_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<HsRelatorioRiscoDataAuto> getOuterClass()
	{
		return HsRelatorioRiscoDataAuto.class;
	}

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

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