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

	public HsLegislacaoCategoria()
	{
	}

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

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

	public void setDeleted_date(java.sql.Timestamp deleted_dateValue )
	{
		this.deleted_date = deleted_dateValue;
	}

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

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

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