/*
* Causas.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.*;

public final class Causas implements JDOInnerObject
{
	private Integer id;
	private String causa;
	private String activa;

	public Causas()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == CausasDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == CausasDataAuto.CAUSA )
		{
			return causa;
		}
		else if( fieldName == CausasDataAuto.ACTIVA )
		{
			return activa;
		}
		else if( fieldName.equals( CausasDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( CausasDataAuto.CAUSA ) )
		{
			return causa;
		}
		else if( fieldName.equals( CausasDataAuto.ACTIVA ) )
		{
			return activa;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == CausasDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == CausasDataAuto.CAUSA )
		{
			causa = ( String ) value;
		}
		else if( fieldName == CausasDataAuto.ACTIVA )
		{
			activa = ( String ) value;
		}
		else if( fieldName.equals( CausasDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( CausasDataAuto.CAUSA ) )
		{
			causa = ( String )  value;
		}
		else if( fieldName.equals( CausasDataAuto.ACTIVA ) )
		{
			activa = ( String )  value;
		}
	}

	public Integer getId()
	{
		return id;
	}

	public void setId(Integer idValue )
	{
		this.id = idValue;
	}

	public String getCausa()
	{
		return causa;
	}

	public void setCausa(String causaValue )
	{
		this.causa = causaValue;
	}

	public String getActiva()
	{
		return activa;
	}

	public void setActiva(String activaValue )
	{
		this.activa = activaValue;
	}

	public Class<CausasDataAuto> getOuterClass()
	{
		return CausasDataAuto.class;
	}

	public CausasDataAuto getOuterClassInstance()
	{
		CausasDataAuto outerObj = new CausasDataAuto();
		outerObj.setInnerObject(this);
		return outerObj;
	}

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