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

	public HsLegislacao()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == HsLegislacaoDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == HsLegislacaoDataAuto.DESCRIPTION )
		{
			return description;
		}
		else if( fieldName == HsLegislacaoDataAuto.CATEGORIA_ID )
		{
			return categoria_id;
		}
		else if( fieldName == HsLegislacaoDataAuto.DELETED_DATE )
		{
			return deleted_date;
		}
		else if( fieldName.equals( HsLegislacaoDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( HsLegislacaoDataAuto.DESCRIPTION ) )
		{
			return description;
		}
		else if( fieldName.equals( HsLegislacaoDataAuto.CATEGORIA_ID ) )
		{
			return categoria_id;
		}
		else if( fieldName.equals( HsLegislacaoDataAuto.DELETED_DATE ) )
		{
			return deleted_date;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == HsLegislacaoDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == HsLegislacaoDataAuto.DESCRIPTION )
		{
			description = ( String ) value;
		}
		else if( fieldName == HsLegislacaoDataAuto.CATEGORIA_ID )
		{
			categoria_id = ( Integer ) value;
		}
		else if( fieldName == HsLegislacaoDataAuto.DELETED_DATE )
		{
			deleted_date = ( java.sql.Timestamp ) value;
		}
		else if( fieldName.equals( HsLegislacaoDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( HsLegislacaoDataAuto.DESCRIPTION ) )
		{
			description = ( String )  value;
		}
		else if( fieldName.equals( HsLegislacaoDataAuto.CATEGORIA_ID ) )
		{
			categoria_id = ( Integer )  value;
		}
		else if( fieldName.equals( HsLegislacaoDataAuto.DELETED_DATE ) )
		{
			deleted_date = ( java.sql.Timestamp )  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 getCategoria_id()
	{
		return categoria_id;
	}

	public void setCategoria_id(Integer categoria_idValue )
	{
		this.categoria_id = categoria_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 Class<HsLegislacaoDataAuto> getOuterClass()
	{
		return HsLegislacaoDataAuto.class;
	}

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

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