/*
* ExamesPortaria.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 ExamesPortaria implements JDOInnerObject
{
	private Integer id;
	private String portaria;
	private java.sql.Timestamp data_entrada;

	public ExamesPortaria()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == ExamesPortariaDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == ExamesPortariaDataAuto.PORTARIA )
		{
			return portaria;
		}
		else if( fieldName == ExamesPortariaDataAuto.DATA_ENTRADA )
		{
			return data_entrada;
		}
		else if( fieldName.equals( ExamesPortariaDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( ExamesPortariaDataAuto.PORTARIA ) )
		{
			return portaria;
		}
		else if( fieldName.equals( ExamesPortariaDataAuto.DATA_ENTRADA ) )
		{
			return data_entrada;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == ExamesPortariaDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == ExamesPortariaDataAuto.PORTARIA )
		{
			portaria = ( String ) value;
		}
		else if( fieldName == ExamesPortariaDataAuto.DATA_ENTRADA )
		{
			data_entrada = ( java.sql.Timestamp ) value;
		}
		else if( fieldName.equals( ExamesPortariaDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( ExamesPortariaDataAuto.PORTARIA ) )
		{
			portaria = ( String )  value;
		}
		else if( fieldName.equals( ExamesPortariaDataAuto.DATA_ENTRADA ) )
		{
			data_entrada = ( java.sql.Timestamp )  value;
		}
	}

	public Integer getId()
	{
		return id;
	}

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

	public String getPortaria()
	{
		return portaria;
	}

	public void setPortaria(String portariaValue )
	{
		this.portaria = portariaValue;
	}

	public java.sql.Timestamp getData_entrada()
	{
		return data_entrada;
	}

	public void setData_entrada(java.sql.Timestamp data_entradaValue )
	{
		this.data_entrada = data_entradaValue;
	}

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

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

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