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

class ControleDataAuto extends JDOObject
{

	public static final String TABLENAME = "controle";

	public static final String ID = "id";
	public static final String ID_FULL = "controle.id";
	public static final String ANALISE_YEAR = "analise_year";
	public static final String ANALISE_YEAR_FULL = "controle.analise_year";
	public static final String LAST_ANALISE_NR = "last_analise_nr";
	public static final String LAST_ANALISE_NR_FULL = "controle.last_analise_nr";

	public static final String FIELD_NAMES[] = new String[]{
		ANALISE_YEAR, LAST_ANALISE_NR, };


	protected static final String ALL_FIELD_NAMES[] = new String[]{
		ID, ANALISE_YEAR, LAST_ANALISE_NR, };

	private Map<String, Object> dataHash;

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

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

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

	public Integer getAnalise_year()
	{
		return (Integer) get(ANALISE_YEAR);
	}

	public void setAnalise_year(Integer analise_yearValue )
	{
		this.set(ANALISE_YEAR, analise_yearValue );
	}

	public Integer getLast_analise_nr()
	{
		return (Integer) get(LAST_ANALISE_NR);
	}

	public void setLast_analise_nr(Integer last_analise_nrValue )
	{
		this.set(LAST_ANALISE_NR, last_analise_nrValue );
	}

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

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