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

public final class Errors implements JDOInnerObject
{
	private Integer id;
	private java.sql.Timestamp date;
	private String type;
	private String environment;
	private String description;

	public Errors()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == ErrorsDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == ErrorsDataAuto.DATE )
		{
			return date;
		}
		else if( fieldName == ErrorsDataAuto.TYPE )
		{
			return type;
		}
		else if( fieldName == ErrorsDataAuto.ENVIRONMENT )
		{
			return environment;
		}
		else if( fieldName == ErrorsDataAuto.DESCRIPTION )
		{
			return description;
		}
		else if( fieldName.equals( ErrorsDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( ErrorsDataAuto.DATE ) )
		{
			return date;
		}
		else if( fieldName.equals( ErrorsDataAuto.TYPE ) )
		{
			return type;
		}
		else if( fieldName.equals( ErrorsDataAuto.ENVIRONMENT ) )
		{
			return environment;
		}
		else if( fieldName.equals( ErrorsDataAuto.DESCRIPTION ) )
		{
			return description;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == ErrorsDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == ErrorsDataAuto.DATE )
		{
			date = ( java.sql.Timestamp ) value;
		}
		else if( fieldName == ErrorsDataAuto.TYPE )
		{
			type = ( String ) value;
		}
		else if( fieldName == ErrorsDataAuto.ENVIRONMENT )
		{
			environment = ( String ) value;
		}
		else if( fieldName == ErrorsDataAuto.DESCRIPTION )
		{
			description = ( String ) value;
		}
		else if( fieldName.equals( ErrorsDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( ErrorsDataAuto.DATE ) )
		{
			date = ( java.sql.Timestamp )  value;
		}
		else if( fieldName.equals( ErrorsDataAuto.TYPE ) )
		{
			type = ( String )  value;
		}
		else if( fieldName.equals( ErrorsDataAuto.ENVIRONMENT ) )
		{
			environment = ( String )  value;
		}
		else if( fieldName.equals( ErrorsDataAuto.DESCRIPTION ) )
		{
			description = ( String )  value;
		}
	}

	public Integer getId()
	{
		return id;
	}

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

	public java.sql.Timestamp getDate()
	{
		return date;
	}

	public void setDate(java.sql.Timestamp dateValue )
	{
		this.date = dateValue;
	}

	public String getType()
	{
		return type;
	}

	public void setType(String typeValue )
	{
		this.type = typeValue;
	}

	public String getEnvironment()
	{
		return environment;
	}

	public void setEnvironment(String environmentValue )
	{
		this.environment = environmentValue;
	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String descriptionValue )
	{
		this.description = descriptionValue;
	}

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

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

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