/*
* CausasDataAuto.java
*
* Generated by com.evutils.codegen.JDOObjectGenerator
*
* Use but DON'T TOUCH
*/
package com.evolute.siprp.server.db.data.siprp;

import com.evolute.utils.jdo.*;
import java.util.HashMap;
import java.util.Map;

class CausasDataAuto extends JDOObject
{

	public static final String TABLENAME = "causas";

	public static final String ID = "id";
	public static final String ID_FULL = "causas.id";
	public static final String CAUSA = "causa";
	public static final String CAUSA_FULL = "causas.causa";
	public static final String ACTIVA = "activa";
	public static final String ACTIVA_FULL = "causas.activa";

	public static final String FIELD_NAMES[] = new String[]{
		CAUSA, ACTIVA, };


	protected static final String ALL_FIELD_NAMES[] = new String[]{
		ID, CAUSA, ACTIVA, };

	private Map<String, Object> dataHash;

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

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

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

	public String getCausa()
	{
		return (String) get(CAUSA);
	}

	public void setCausa(String causaValue )
	{
		this.set(CAUSA, causaValue );
	}

	public String getActiva()
	{
		return (String) get(ACTIVA);
	}

	public void setActiva(String activaValue )
	{
		this.set(ACTIVA, activaValue );
	}

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

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