/*
* Permissoes.java
*
* Generated by com.evutils.codegen.JDOObjectGenerator
*
* Use but DON'T TOUCH
*/
package com.evolute.siprp.server.db.data.siprp;

import com.evolute.utils.jdo.*;

public final class Permissoes implements JDOInnerObject
{
	private Integer id;
	private Integer user_id;
	private Integer codigo_permissao;

	public Permissoes()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == PermissoesDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == PermissoesDataAuto.USER_ID )
		{
			return user_id;
		}
		else if( fieldName == PermissoesDataAuto.CODIGO_PERMISSAO )
		{
			return codigo_permissao;
		}
		else if( fieldName.equals( PermissoesDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( PermissoesDataAuto.USER_ID ) )
		{
			return user_id;
		}
		else if( fieldName.equals( PermissoesDataAuto.CODIGO_PERMISSAO ) )
		{
			return codigo_permissao;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == PermissoesDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == PermissoesDataAuto.USER_ID )
		{
			user_id = ( Integer ) value;
		}
		else if( fieldName == PermissoesDataAuto.CODIGO_PERMISSAO )
		{
			codigo_permissao = ( Integer ) value;
		}
		else if( fieldName.equals( PermissoesDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( PermissoesDataAuto.USER_ID ) )
		{
			user_id = ( Integer )  value;
		}
		else if( fieldName.equals( PermissoesDataAuto.CODIGO_PERMISSAO ) )
		{
			codigo_permissao = ( Integer )  value;
		}
	}

	public Integer getId()
	{
		return id;
	}

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

	public Integer getUser_id()
	{
		return user_id;
	}

	public void setUser_id(Integer user_idValue )
	{
		this.user_id = user_idValue;
	}

	public Integer getCodigo_permissao()
	{
		return codigo_permissao;
	}

	public void setCodigo_permissao(Integer codigo_permissaoValue )
	{
		this.codigo_permissao = codigo_permissaoValue;
	}

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

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

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