/*
* NotNoticias.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 NotNoticias implements JDOInnerObject
{
	private Integer id;
	private java.util.Date data;
	private java.sql.Timestamp stamp;
	private String utilizador;
	private String noticia;

	public NotNoticias()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == NotNoticiasDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == NotNoticiasDataAuto.DATA )
		{
			return data;
		}
		else if( fieldName == NotNoticiasDataAuto.STAMP )
		{
			return stamp;
		}
		else if( fieldName == NotNoticiasDataAuto.UTILIZADOR )
		{
			return utilizador;
		}
		else if( fieldName == NotNoticiasDataAuto.NOTICIA )
		{
			return noticia;
		}
		else if( fieldName.equals( NotNoticiasDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( NotNoticiasDataAuto.DATA ) )
		{
			return data;
		}
		else if( fieldName.equals( NotNoticiasDataAuto.STAMP ) )
		{
			return stamp;
		}
		else if( fieldName.equals( NotNoticiasDataAuto.UTILIZADOR ) )
		{
			return utilizador;
		}
		else if( fieldName.equals( NotNoticiasDataAuto.NOTICIA ) )
		{
			return noticia;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == NotNoticiasDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == NotNoticiasDataAuto.DATA )
		{
			data = ( java.util.Date ) value;
		}
		else if( fieldName == NotNoticiasDataAuto.STAMP )
		{
			stamp = ( java.sql.Timestamp ) value;
		}
		else if( fieldName == NotNoticiasDataAuto.UTILIZADOR )
		{
			utilizador = ( String ) value;
		}
		else if( fieldName == NotNoticiasDataAuto.NOTICIA )
		{
			noticia = ( String ) value;
		}
		else if( fieldName.equals( NotNoticiasDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( NotNoticiasDataAuto.DATA ) )
		{
			data = ( java.util.Date )  value;
		}
		else if( fieldName.equals( NotNoticiasDataAuto.STAMP ) )
		{
			stamp = ( java.sql.Timestamp )  value;
		}
		else if( fieldName.equals( NotNoticiasDataAuto.UTILIZADOR ) )
		{
			utilizador = ( String )  value;
		}
		else if( fieldName.equals( NotNoticiasDataAuto.NOTICIA ) )
		{
			noticia = ( String )  value;
		}
	}

	public Integer getId()
	{
		return id;
	}

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

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

	public void setData(java.util.Date dataValue )
	{
		this.data = dataValue;
	}

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

	public void setStamp(java.sql.Timestamp stampValue )
	{
		this.stamp = stampValue;
	}

	public String getUtilizador()
	{
		return utilizador;
	}

	public void setUtilizador(String utilizadorValue )
	{
		this.utilizador = utilizadorValue;
	}

	public String getNoticia()
	{
		return noticia;
	}

	public void setNoticia(String noticiaValue )
	{
		this.noticia = noticiaValue;
	}

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

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

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