/*
* TiposExamesCompDataAuto.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.*;
import java.util.HashMap;
import java.util.Map;

class TiposExamesCompDataAuto extends JDOObject
{

	public static final String TABLENAME = "tipos_exames_comp";

	public static final String ID = "id";
	public static final String ID_FULL = "tipos_exames_comp.id";
	public static final String ORDEM = "ordem";
	public static final String ORDEM_FULL = "tipos_exames_comp.ordem";
	public static final String DESCRICAO = "descricao";
	public static final String DESCRICAO_FULL = "tipos_exames_comp.descricao";

	public static final String FIELD_NAMES[] = new String[]{
		ORDEM, DESCRICAO, };


	protected static final String ALL_FIELD_NAMES[] = new String[]{
		ID, ORDEM, DESCRICAO, };

	private Map<String, Object> dataHash;

	public TiposExamesCompDataAuto()
	{
		dataHash = new HashMap<String, Object>();
	}

	public Integer getId()
	{
		return (Integer) get(ID);
	}

	public void setId(Integer idValue )
	{
		this.set(ID, idValue );
	}

	public Integer getOrdem()
	{
		return (Integer) get(ORDEM);
	}

	public void setOrdem(Integer ordemValue )
	{
		this.set(ORDEM, ordemValue );
	}

	public String getDescricao()
	{
		return (String) get(DESCRICAO);
	}

	public void setDescricao(String descricaoValue )
	{
		this.set(DESCRICAO, descricaoValue );
	}

	protected Object innerGet( String fieldName )
		throws Exception
	{
		Object value = null;
		value = dataHash.get( fieldName );
		return value;
	}

	protected void innerSet( String fieldName, Object value )
		throws Exception
	{
		dataHash.put( fieldName, value );
	}

	public String []getFieldNames()
	{
		return FIELD_NAMES;
	}

	protected String []getAllFieldNames()
	{
		return ALL_FIELD_NAMES;
	}

	public Class<TiposExamesComp> getInnerClass()
	{
		return TiposExamesComp.class;
	}

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