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

	public static final String TABLENAME = "hs_medida";

	public static final String ID = "id";
	public static final String ID_FULL = "hs_medida.id";
	public static final String DESCRIPTION = "description";
	public static final String DESCRIPTION_FULL = "hs_medida.description";
	public static final String REQUESITOS_LEGAIS = "requesitos_legais";
	public static final String REQUESITOS_LEGAIS_FULL = "hs_medida.requesitos_legais";
	public static final String DELETED_DATE = "deleted_date";
	public static final String DELETED_DATE_FULL = "hs_medida.deleted_date";

	public static final String FIELD_NAMES[] = new String[]{
		DESCRIPTION, REQUESITOS_LEGAIS, DELETED_DATE, };


	protected static final String ALL_FIELD_NAMES[] = new String[]{
		ID, DESCRIPTION, REQUESITOS_LEGAIS, DELETED_DATE, };

	private Map<String, Object> dataHash;

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

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

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

	public String getDescription()
	{
		return (String) get(DESCRIPTION);
	}

	public void setDescription(String descriptionValue )
	{
		this.set(DESCRIPTION, descriptionValue );
	}

	public String getRequesitos_legais()
	{
		return (String) get(REQUESITOS_LEGAIS);
	}

	public void setRequesitos_legais(String requesitos_legaisValue )
	{
		this.set(REQUESITOS_LEGAIS, requesitos_legaisValue );
	}

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

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