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

	public static final String TABLENAME = "not_noticias";

	public static final String ID = "id";
	public static final String ID_FULL = "not_noticias.id";
	public static final String DATA = "data";
	public static final String DATA_FULL = "not_noticias.data";
	public static final String STAMP = "stamp";
	public static final String STAMP_FULL = "not_noticias.stamp";
	public static final String UTILIZADOR = "utilizador";
	public static final String UTILIZADOR_FULL = "not_noticias.utilizador";
	public static final String NOTICIA = "noticia";
	public static final String NOTICIA_FULL = "not_noticias.noticia";

	public static final String FIELD_NAMES[] = new String[]{
		DATA, STAMP, UTILIZADOR, NOTICIA, };


	protected static final String ALL_FIELD_NAMES[] = new String[]{
		ID, DATA, STAMP, UTILIZADOR, NOTICIA, };

	private Map<String, Object> dataHash;

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

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

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

	public java.util.Date getData()
	{
		return (java.util.Date) get(DATA);
	}

	public void setData(java.util.Date dataValue )
	{
		this.set(DATA, dataValue );
	}

	public java.sql.Timestamp getStamp()
	{
		return (java.sql.Timestamp) get(STAMP);
	}

	public void setStamp(java.sql.Timestamp stampValue )
	{
		this.set(STAMP, stampValue );
	}

	public String getUtilizador()
	{
		return (String) get(UTILIZADOR);
	}

	public void setUtilizador(String utilizadorValue )
	{
		this.set(UTILIZADOR, utilizadorValue );
	}

	public String getNoticia()
	{
		return (String) get(NOTICIA);
	}

	public void setNoticia(String noticiaValue )
	{
		this.set(NOTICIA, noticiaValue );
	}

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

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