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

	public static final String TABLENAME = "hs_equipamento";

	public static final String ID = "id";
	public static final String ID_FULL = "hs_equipamento.id";
	public static final String TIPO = "tipo";
	public static final String TIPO_FULL = "hs_equipamento.tipo";
	public static final String MARCA = "marca";
	public static final String MARCA_FULL = "hs_equipamento.marca";
	public static final String MODELO = "modelo";
	public static final String MODELO_FULL = "hs_equipamento.modelo";
	public static final String DELETED_DATE = "deleted_date";
	public static final String DELETED_DATE_FULL = "hs_equipamento.deleted_date";

	public static final String FIELD_NAMES[] = new String[]{
		TIPO, MARCA, MODELO, DELETED_DATE, };


	protected static final String ALL_FIELD_NAMES[] = new String[]{
		ID, TIPO, MARCA, MODELO, DELETED_DATE, };

	private Map<String, Object> dataHash;

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

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

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

	public String getTipo()
	{
		return (String) get(TIPO);
	}

	public void setTipo(String tipoValue )
	{
		this.set(TIPO, tipoValue );
	}

	public String getMarca()
	{
		return (String) get(MARCA);
	}

	public void setMarca(String marcaValue )
	{
		this.set(MARCA, marcaValue );
	}

	public String getModelo()
	{
		return (String) get(MODELO);
	}

	public void setModelo(String modeloValue )
	{
		this.set(MODELO, modeloValue );
	}

	public java.sql.Timestamp getDeleted_date()
	{
		return (java.sql.Timestamp) get(DELETED_DATE);
	}

	public void setDeleted_date(java.sql.Timestamp deleted_dateValue )
	{
		this.set(DELETED_DATE, deleted_dateValue );
	}

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

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