/*
* Controle.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 Controle implements JDOInnerObject
{
	private Integer id;
	private Integer analise_year;
	private Integer last_analise_nr;

	public Controle()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == ControleDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == ControleDataAuto.ANALISE_YEAR )
		{
			return analise_year;
		}
		else if( fieldName == ControleDataAuto.LAST_ANALISE_NR )
		{
			return last_analise_nr;
		}
		else if( fieldName.equals( ControleDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( ControleDataAuto.ANALISE_YEAR ) )
		{
			return analise_year;
		}
		else if( fieldName.equals( ControleDataAuto.LAST_ANALISE_NR ) )
		{
			return last_analise_nr;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == ControleDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == ControleDataAuto.ANALISE_YEAR )
		{
			analise_year = ( Integer ) value;
		}
		else if( fieldName == ControleDataAuto.LAST_ANALISE_NR )
		{
			last_analise_nr = ( Integer ) value;
		}
		else if( fieldName.equals( ControleDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( ControleDataAuto.ANALISE_YEAR ) )
		{
			analise_year = ( Integer )  value;
		}
		else if( fieldName.equals( ControleDataAuto.LAST_ANALISE_NR ) )
		{
			last_analise_nr = ( Integer )  value;
		}
	}

	public Integer getId()
	{
		return id;
	}

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

	public Integer getAnalise_year()
	{
		return analise_year;
	}

	public void setAnalise_year(Integer analise_yearValue )
	{
		this.analise_year = analise_yearValue;
	}

	public Integer getLast_analise_nr()
	{
		return last_analise_nr;
	}

	public void setLast_analise_nr(Integer last_analise_nrValue )
	{
		this.last_analise_nr = last_analise_nrValue;
	}

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

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

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