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

	public HsRelatorioMedida()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == HsRelatorioMedidaDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == HsRelatorioMedidaDataAuto.RISCO_ID )
		{
			return risco_id;
		}
		else if( fieldName == HsRelatorioMedidaDataAuto.DESCRIPTION )
		{
			return description;
		}
		else if( fieldName == HsRelatorioMedidaDataAuto.REQUESITOS_LEGAIS )
		{
			return requesitos_legais;
		}
		else if( fieldName == HsRelatorioMedidaDataAuto.DELETED_DATE )
		{
			return deleted_date;
		}
		else if( fieldName.equals( HsRelatorioMedidaDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( HsRelatorioMedidaDataAuto.RISCO_ID ) )
		{
			return risco_id;
		}
		else if( fieldName.equals( HsRelatorioMedidaDataAuto.DESCRIPTION ) )
		{
			return description;
		}
		else if( fieldName.equals( HsRelatorioMedidaDataAuto.REQUESITOS_LEGAIS ) )
		{
			return requesitos_legais;
		}
		else if( fieldName.equals( HsRelatorioMedidaDataAuto.DELETED_DATE ) )
		{
			return deleted_date;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == HsRelatorioMedidaDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == HsRelatorioMedidaDataAuto.RISCO_ID )
		{
			risco_id = ( Integer ) value;
		}
		else if( fieldName == HsRelatorioMedidaDataAuto.DESCRIPTION )
		{
			description = ( String ) value;
		}
		else if( fieldName == HsRelatorioMedidaDataAuto.REQUESITOS_LEGAIS )
		{
			requesitos_legais = ( String ) value;
		}
		else if( fieldName == HsRelatorioMedidaDataAuto.DELETED_DATE )
		{
			deleted_date = ( java.sql.Timestamp ) value;
		}
		else if( fieldName.equals( HsRelatorioMedidaDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( HsRelatorioMedidaDataAuto.RISCO_ID ) )
		{
			risco_id = ( Integer )  value;
		}
		else if( fieldName.equals( HsRelatorioMedidaDataAuto.DESCRIPTION ) )
		{
			description = ( String )  value;
		}
		else if( fieldName.equals( HsRelatorioMedidaDataAuto.REQUESITOS_LEGAIS ) )
		{
			requesitos_legais = ( String )  value;
		}
		else if( fieldName.equals( HsRelatorioMedidaDataAuto.DELETED_DATE ) )
		{
			deleted_date = ( java.sql.Timestamp )  value;
		}
	}

	public Integer getId()
	{
		return id;
	}

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

	public Integer getRisco_id()
	{
		return risco_id;
	}

	public void setRisco_id(Integer risco_idValue )
	{
		this.risco_id = risco_idValue;
	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String descriptionValue )
	{
		this.description = descriptionValue;
	}

	public String getRequesitos_legais()
	{
		return requesitos_legais;
	}

	public void setRequesitos_legais(String requesitos_legaisValue )
	{
		this.requesitos_legais = requesitos_legaisValue;
	}

	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<HsRelatorioMedidaDataAuto> getOuterClass()
	{
		return HsRelatorioMedidaDataAuto.class;
	}

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

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