/*
* Contactos.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 Contactos implements JDOInnerObject
{
	private Integer id;
	private String nome;
	private String telefone;
	private String telemovel;
	private String fax;
	private String email;
	private String cargo;

	public Contactos()
	{
	}

	public Object getField( String fieldName )
	{
		if( fieldName == ContactosDataAuto.ID )
		{
			return id;
		}
		else if( fieldName == ContactosDataAuto.NOME )
		{
			return nome;
		}
		else if( fieldName == ContactosDataAuto.TELEFONE )
		{
			return telefone;
		}
		else if( fieldName == ContactosDataAuto.TELEMOVEL )
		{
			return telemovel;
		}
		else if( fieldName == ContactosDataAuto.FAX )
		{
			return fax;
		}
		else if( fieldName == ContactosDataAuto.EMAIL )
		{
			return email;
		}
		else if( fieldName == ContactosDataAuto.CARGO )
		{
			return cargo;
		}
		else if( fieldName.equals( ContactosDataAuto.ID ) )
		{
			return id;
		}
		else if( fieldName.equals( ContactosDataAuto.NOME ) )
		{
			return nome;
		}
		else if( fieldName.equals( ContactosDataAuto.TELEFONE ) )
		{
			return telefone;
		}
		else if( fieldName.equals( ContactosDataAuto.TELEMOVEL ) )
		{
			return telemovel;
		}
		else if( fieldName.equals( ContactosDataAuto.FAX ) )
		{
			return fax;
		}
		else if( fieldName.equals( ContactosDataAuto.EMAIL ) )
		{
			return email;
		}
		else if( fieldName.equals( ContactosDataAuto.CARGO ) )
		{
			return cargo;
		}
		return null;
	}

	public void setField( String fieldName, Object value )
	{
		 if( fieldName == ContactosDataAuto.ID )
		{
			id = ( Integer ) value;
		}
		else if( fieldName == ContactosDataAuto.NOME )
		{
			nome = ( String ) value;
		}
		else if( fieldName == ContactosDataAuto.TELEFONE )
		{
			telefone = ( String ) value;
		}
		else if( fieldName == ContactosDataAuto.TELEMOVEL )
		{
			telemovel = ( String ) value;
		}
		else if( fieldName == ContactosDataAuto.FAX )
		{
			fax = ( String ) value;
		}
		else if( fieldName == ContactosDataAuto.EMAIL )
		{
			email = ( String ) value;
		}
		else if( fieldName == ContactosDataAuto.CARGO )
		{
			cargo = ( String ) value;
		}
		else if( fieldName.equals( ContactosDataAuto.ID ) )
		{
			id = ( Integer )  value;
		}
		else if( fieldName.equals( ContactosDataAuto.NOME ) )
		{
			nome = ( String )  value;
		}
		else if( fieldName.equals( ContactosDataAuto.TELEFONE ) )
		{
			telefone = ( String )  value;
		}
		else if( fieldName.equals( ContactosDataAuto.TELEMOVEL ) )
		{
			telemovel = ( String )  value;
		}
		else if( fieldName.equals( ContactosDataAuto.FAX ) )
		{
			fax = ( String )  value;
		}
		else if( fieldName.equals( ContactosDataAuto.EMAIL ) )
		{
			email = ( String )  value;
		}
		else if( fieldName.equals( ContactosDataAuto.CARGO ) )
		{
			cargo = ( String )  value;
		}
	}

	public Integer getId()
	{
		return id;
	}

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

	public String getNome()
	{
		return nome;
	}

	public void setNome(String nomeValue )
	{
		this.nome = nomeValue;
	}

	public String getTelefone()
	{
		return telefone;
	}

	public void setTelefone(String telefoneValue )
	{
		this.telefone = telefoneValue;
	}

	public String getTelemovel()
	{
		return telemovel;
	}

	public void setTelemovel(String telemovelValue )
	{
		this.telemovel = telemovelValue;
	}

	public String getFax()
	{
		return fax;
	}

	public void setFax(String faxValue )
	{
		this.fax = faxValue;
	}

	public String getEmail()
	{
		return email;
	}

	public void setEmail(String emailValue )
	{
		this.email = emailValue;
	}

	public String getCargo()
	{
		return cargo;
	}

	public void setCargo(String cargoValue )
	{
		this.cargo = cargoValue;
	}

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

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

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