package siprp.database.cayenne.objects.auto;

import java.util.List;

import siprp.database.cayenne.objects.BaseObject;
import siprp.database.cayenne.objects.Empresas;
import siprp.database.cayenne.objects.Estabelecimentos;
import siprp.database.cayenne.objects.Prestadores;

/**
 * Class _Contactos was generated by Cayenne.
 * It is probably a good idea to avoid changing this class manually,
 * since it may be overwritten next time code is regenerated.
 * If you need to make any customizations, please use subclass.
 */
public abstract class _Contactos extends BaseObject {

    public static final String CARGO_PROPERTY = "cargo";
    public static final String EMAIL_PROPERTY = "email";
    public static final String FAX_PROPERTY = "fax";
    public static final String ID_PROPERTY = "id";
    public static final String NOME_PROPERTY = "nome";
    public static final String TELEFONE_PROPERTY = "telefone";
    public static final String TELEMOVEL_PROPERTY = "telemovel";
    public static final String EMPRESAS_ARRAY_PROPERTY = "empresasArray";
    public static final String EMPRESAS_ARRAY1_PROPERTY = "empresasArray1";
    public static final String ESTABELECIMENTOS_ARRAY_PROPERTY = "estabelecimentosArray";
    public static final String PRESTADORES_ARRAY_PROPERTY = "prestadoresArray";

    public static final String ID_PK_COLUMN = "id";

    public void setCargo(String cargo) {
        writeProperty("cargo", cargo);
    }
    public String getCargo() {
        return (String)readProperty("cargo");
    }

    public void setEmail(String email) {
        writeProperty("email", email);
    }
    public String getEmail() {
        return (String)readProperty("email");
    }

    public void setFax(String fax) {
        writeProperty("fax", fax);
    }
    public String getFax() {
        return (String)readProperty("fax");
    }

    public void setId(Integer id) {
        writeProperty("id", id);
    }
    public Integer getId() {
        return (Integer)readProperty("id");
    }

    public void setNome(String nome) {
        writeProperty("nome", nome);
    }
    public String getNome() {
        return (String)readProperty("nome");
    }

    public void setTelefone(String telefone) {
        writeProperty("telefone", telefone);
    }
    public String getTelefone() {
        return (String)readProperty("telefone");
    }

    public void setTelemovel(String telemovel) {
        writeProperty("telemovel", telemovel);
    }
    public String getTelemovel() {
        return (String)readProperty("telemovel");
    }

    public void addToEmpresasArray(Empresas obj) {
        addToManyTarget("empresasArray", obj, true);
    }
    public void removeFromEmpresasArray(Empresas obj) {
        removeToManyTarget("empresasArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<Empresas> getEmpresasArray() {
        return (List<Empresas>)readProperty("empresasArray");
    }


    public void addToEmpresasArray1(Empresas obj) {
        addToManyTarget("empresasArray1", obj, true);
    }
    public void removeFromEmpresasArray1(Empresas obj) {
        removeToManyTarget("empresasArray1", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<Empresas> getEmpresasArray1() {
        return (List<Empresas>)readProperty("empresasArray1");
    }


    public void addToEstabelecimentosArray(Estabelecimentos obj) {
        addToManyTarget("estabelecimentosArray", obj, true);
    }
    public void removeFromEstabelecimentosArray(Estabelecimentos obj) {
        removeToManyTarget("estabelecimentosArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<Estabelecimentos> getEstabelecimentosArray() {
        return (List<Estabelecimentos>)readProperty("estabelecimentosArray");
    }


    public void addToPrestadoresArray(Prestadores obj) {
        addToManyTarget("prestadoresArray", obj, true);
    }
    public void removeFromPrestadoresArray(Prestadores obj) {
        removeToManyTarget("prestadoresArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<Prestadores> getPrestadoresArray() {
        return (List<Prestadores>)readProperty("prestadoresArray");
    }


}
