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

	public static final String TABLENAME = "medicos";

	public static final String ID = "id";
	public static final String ID_FULL = "medicos.id";
	public static final String NOME = "nome";
	public static final String NOME_FULL = "medicos.nome";
	public static final String NUMERO_CEDULA = "numero_cedula";
	public static final String NUMERO_CEDULA_FULL = "medicos.numero_cedula";
	public static final String INACTIVO = "inactivo";
	public static final String INACTIVO_FULL = "medicos.inactivo";

	public static final String FIELD_NAMES[] = new String[]{
		NOME, NUMERO_CEDULA, INACTIVO, };


	protected static final String ALL_FIELD_NAMES[] = new String[]{
		ID, NOME, NUMERO_CEDULA, INACTIVO, };

	private Map<String, Object> dataHash;

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

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

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

	public String getNome()
	{
		return (String) get(NOME);
	}

	public void setNome(String nomeValue )
	{
		this.set(NOME, nomeValue );
	}

	public String getNumero_cedula()
	{
		return (String) get(NUMERO_CEDULA);
	}

	public void setNumero_cedula(String numero_cedulaValue )
	{
		this.set(NUMERO_CEDULA, numero_cedulaValue );
	}

	public String getInactivo()
	{
		return (String) get(INACTIVO);
	}

	public void setInactivo(String inactivoValue )
	{
		this.set(INACTIVO, inactivoValue );
	}

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

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