/*
* ExamesPortariaDataAuto.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 ExamesPortariaDataAuto extends JDOObject
{

	public static final String TABLENAME = "exames_portaria";

	public static final String ID = "id";
	public static final String ID_FULL = "exames_portaria.id";
	public static final String PORTARIA = "portaria";
	public static final String PORTARIA_FULL = "exames_portaria.portaria";
	public static final String DATA_ENTRADA = "data_entrada";
	public static final String DATA_ENTRADA_FULL = "exames_portaria.data_entrada";

	public static final String FIELD_NAMES[] = new String[]{
		PORTARIA, DATA_ENTRADA, };


	protected static final String ALL_FIELD_NAMES[] = new String[]{
		ID, PORTARIA, DATA_ENTRADA, };

	private Map<String, Object> dataHash;

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

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

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

	public String getPortaria()
	{
		return (String) get(PORTARIA);
	}

	public void setPortaria(String portariaValue )
	{
		this.set(PORTARIA, portariaValue );
	}

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

	public void setData_entrada(java.sql.Timestamp data_entradaValue )
	{
		this.set(DATA_ENTRADA, data_entradaValue );
	}

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

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