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

	public static final String TABLENAME = "contactos";

	public static final String ID = "id";
	public static final String ID_FULL = "contactos.id";
	public static final String NOME = "nome";
	public static final String NOME_FULL = "contactos.nome";
	public static final String TELEFONE = "telefone";
	public static final String TELEFONE_FULL = "contactos.telefone";
	public static final String TELEMOVEL = "telemovel";
	public static final String TELEMOVEL_FULL = "contactos.telemovel";
	public static final String FAX = "fax";
	public static final String FAX_FULL = "contactos.fax";
	public static final String EMAIL = "email";
	public static final String EMAIL_FULL = "contactos.email";
	public static final String CARGO = "cargo";
	public static final String CARGO_FULL = "contactos.cargo";

	public static final String FIELD_NAMES[] = new String[]{
		NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, };


	protected static final String ALL_FIELD_NAMES[] = new String[]{
		ID, NOME, TELEFONE, TELEMOVEL, FAX, EMAIL, CARGO, };

	private Map<String, Object> dataHash;

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

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

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

	public String getNome()
	{
		return (String) get(NOME);
	}

	public void setNome(String nomeValue )
	{
		this.set(NOME, nomeValue );
	}

	public String getTelefone()
	{
		return (String) get(TELEFONE);
	}

	public void setTelefone(String telefoneValue )
	{
		this.set(TELEFONE, telefoneValue );
	}

	public String getTelemovel()
	{
		return (String) get(TELEMOVEL);
	}

	public void setTelemovel(String telemovelValue )
	{
		this.set(TELEMOVEL, telemovelValue );
	}

	public String getFax()
	{
		return (String) get(FAX);
	}

	public void setFax(String faxValue )
	{
		this.set(FAX, faxValue );
	}

	public String getEmail()
	{
		return (String) get(EMAIL);
	}

	public void setEmail(String emailValue )
	{
		this.set(EMAIL, emailValue );
	}

	public String getCargo()
	{
		return (String) get(CARGO);
	}

	public void setCargo(String cargoValue )
	{
		this.set(CARGO, cargoValue );
	}

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

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