001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.records.contact;
005
006
007import com.echothree.model.data.contact.common.pk.PartyContactMechanismDetailPK;
008import com.echothree.model.data.contact.common.pk.PartyContactMechanismPK;
009
010import org.jooq.Record1;
011import org.jooq.impl.UpdatableRecordImpl;
012
013
014/**
015 * This class is generated by jOOQ.
016 */
017@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
018public class PartyContactMechanisms extends UpdatableRecordImpl<PartyContactMechanisms> {
019
020    private static final long serialVersionUID = 1L;
021
022    /**
023     * Setter for
024     * <code>partycontactmechanisms.pcm_partycontactmechanismid</code>.
025     */
026    public void PartyContactMechanism(PartyContactMechanismPK value) {
027        set(0, value);
028    }
029
030    /**
031     * Getter for
032     * <code>partycontactmechanisms.pcm_partycontactmechanismid</code>.
033     */
034    public PartyContactMechanismPK PartyContactMechanism() {
035        return (PartyContactMechanismPK) get(0);
036    }
037
038    /**
039     * Setter for <code>partycontactmechanisms.pcm_activedetailid</code>.
040     */
041    public void ActiveDetail(PartyContactMechanismDetailPK value) {
042        set(1, value);
043    }
044
045    /**
046     * Getter for <code>partycontactmechanisms.pcm_activedetailid</code>.
047     */
048    public PartyContactMechanismDetailPK ActiveDetail() {
049        return (PartyContactMechanismDetailPK) get(1);
050    }
051
052    /**
053     * Setter for <code>partycontactmechanisms.pcm_lastdetailid</code>.
054     */
055    public void LastDetail(PartyContactMechanismDetailPK value) {
056        set(2, value);
057    }
058
059    /**
060     * Getter for <code>partycontactmechanisms.pcm_lastdetailid</code>.
061     */
062    public PartyContactMechanismDetailPK LastDetail() {
063        return (PartyContactMechanismDetailPK) get(2);
064    }
065
066    // -------------------------------------------------------------------------
067    // Primary key information
068    // -------------------------------------------------------------------------
069
070    @Override
071    public Record1<PartyContactMechanismPK> key() {
072        return (Record1) super.key();
073    }
074
075    // -------------------------------------------------------------------------
076    // Constructors
077    // -------------------------------------------------------------------------
078
079    /**
080     * Create a detached PartyContactMechanisms
081     */
082    public PartyContactMechanisms() {
083        super(com.echothree.model.jooq.server.tables.contact.PartyContactMechanisms.PartyContactMechanisms);
084    }
085
086    /**
087     * Create a detached, initialised PartyContactMechanisms
088     */
089    public PartyContactMechanisms(PartyContactMechanismPK PartyContactMechanism, PartyContactMechanismDetailPK ActiveDetail, PartyContactMechanismDetailPK LastDetail) {
090        super(com.echothree.model.jooq.server.tables.contact.PartyContactMechanisms.PartyContactMechanisms);
091
092        PartyContactMechanism(PartyContactMechanism);
093        ActiveDetail(ActiveDetail);
094        LastDetail(LastDetail);
095        resetTouchedOnNotNull();
096    }
097}