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

	public static final String TABLENAME = "errors";

	public static final String ID = "id";
	public static final String ID_FULL = "errors.id";
	public static final String DATE = "date";
	public static final String DATE_FULL = "errors.date";
	public static final String TYPE = "type";
	public static final String TYPE_FULL = "errors.type";
	public static final String ENVIRONMENT = "environment";
	public static final String ENVIRONMENT_FULL = "errors.environment";
	public static final String DESCRIPTION = "description";
	public static final String DESCRIPTION_FULL = "errors.description";

	public static final String FIELD_NAMES[] = new String[]{
		DATE, TYPE, ENVIRONMENT, DESCRIPTION, };


	protected static final String ALL_FIELD_NAMES[] = new String[]{
		ID, DATE, TYPE, ENVIRONMENT, DESCRIPTION, };

	private Map<String, Object> dataHash;

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

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

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

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

	public void setDate(java.sql.Timestamp dateValue )
	{
		this.set(DATE, dateValue );
	}

	public String getType()
	{
		return (String) get(TYPE);
	}

	public void setType(String typeValue )
	{
		this.set(TYPE, typeValue );
	}

	public String getEnvironment()
	{
		return (String) get(ENVIRONMENT);
	}

	public void setEnvironment(String environmentValue )
	{
		this.set(ENVIRONMENT, environmentValue );
	}

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

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

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

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