/*
* HsNormalizacao.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 HsNormalizacao implements JDOInnerObject
{
	private Integer id;
	private String codigo;
	private String descricao;
	private Boolean portuguesa;
	private java.sql.Timestamp deleted_date;

	public HsNormalizacao()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == HsNormalizacaoDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == HsNormalizacaoDataAuto.CODIGO )
		{
			return codigo;
		}
		else if( fieldName == HsNormalizacaoDataAuto.DESCRICAO )
		{
			return descricao;
		}
		else if( fieldName == HsNormalizacaoDataAuto.PORTUGUESA )
		{
			return portuguesa;
		}
		else if( fieldName == HsNormalizacaoDataAuto.DELETED_DATE )
		{
			return deleted_date;
		}
		else if( fieldName.equals( HsNormalizacaoDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( HsNormalizacaoDataAuto.CODIGO ) )
		{
			return codigo;
		}
		else if( fieldName.equals( HsNormalizacaoDataAuto.DESCRICAO ) )
		{
			return descricao;
		}
		else if( fieldName.equals( HsNormalizacaoDataAuto.PORTUGUESA ) )
		{
			return portuguesa;
		}
		else if( fieldName.equals( HsNormalizacaoDataAuto.DELETED_DATE ) )
		{
			return deleted_date;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == HsNormalizacaoDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == HsNormalizacaoDataAuto.CODIGO )
		{
			codigo = ( String ) value;
		}
		else if( fieldName == HsNormalizacaoDataAuto.DESCRICAO )
		{
			descricao = ( String ) value;
		}
		else if( fieldName == HsNormalizacaoDataAuto.PORTUGUESA )
		{
			portuguesa = ( Boolean ) value;
		}
		else if( fieldName == HsNormalizacaoDataAuto.DELETED_DATE )
		{
			deleted_date = ( java.sql.Timestamp ) value;
		}
		else if( fieldName.equals( HsNormalizacaoDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( HsNormalizacaoDataAuto.CODIGO ) )
		{
			codigo = ( String )  value;
		}
		else if( fieldName.equals( HsNormalizacaoDataAuto.DESCRICAO ) )
		{
			descricao = ( String )  value;
		}
		else if( fieldName.equals( HsNormalizacaoDataAuto.PORTUGUESA ) )
		{
			portuguesa = ( Boolean )  value;
		}
		else if( fieldName.equals( HsNormalizacaoDataAuto.DELETED_DATE ) )
		{
			deleted_date = ( java.sql.Timestamp )  value;
		}
	}

	public Integer getId()
	{
		return id;
	}

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

	public String getCodigo()
	{
		return codigo;
	}

	public void setCodigo(String codigoValue )
	{
		this.codigo = codigoValue;
	}

	public String getDescricao()
	{
		return descricao;
	}

	public void setDescricao(String descricaoValue )
	{
		this.descricao = descricaoValue;
	}

	public Boolean getPortuguesa()
	{
		return portuguesa;
	}

	public void setPortuguesa(Boolean portuguesaValue )
	{
		this.portuguesa = portuguesaValue;
	}

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

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

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