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.PartyContactMechanismPurposeDetailPK;
008import com.echothree.model.data.contact.common.pk.PartyContactMechanismPurposePK;
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 PartyContactMechanismPurposes extends UpdatableRecordImpl<PartyContactMechanismPurposes> {
019
020    private static final long serialVersionUID = 1L;
021
022    /**
023     * Setter for
024     * <code>partycontactmechanismpurposes.pcmp_partycontactmechanismpurposeid</code>.
025     */
026    public void PartyContactMechanismPurpose(PartyContactMechanismPurposePK value) {
027        set(0, value);
028    }
029
030    /**
031     * Getter for
032     * <code>partycontactmechanismpurposes.pcmp_partycontactmechanismpurposeid</code>.
033     */
034    public PartyContactMechanismPurposePK PartyContactMechanismPurpose() {
035        return (PartyContactMechanismPurposePK) get(0);
036    }
037
038    /**
039     * Setter for
040     * <code>partycontactmechanismpurposes.pcmp_activedetailid</code>.
041     */
042    public void ActiveDetail(PartyContactMechanismPurposeDetailPK value) {
043        set(1, value);
044    }
045
046    /**
047     * Getter for
048     * <code>partycontactmechanismpurposes.pcmp_activedetailid</code>.
049     */
050    public PartyContactMechanismPurposeDetailPK ActiveDetail() {
051        return (PartyContactMechanismPurposeDetailPK) get(1);
052    }
053
054    /**
055     * Setter for <code>partycontactmechanismpurposes.pcmp_lastdetailid</code>.
056     */
057    public void LastDetail(PartyContactMechanismPurposeDetailPK value) {
058        set(2, value);
059    }
060
061    /**
062     * Getter for <code>partycontactmechanismpurposes.pcmp_lastdetailid</code>.
063     */
064    public PartyContactMechanismPurposeDetailPK LastDetail() {
065        return (PartyContactMechanismPurposeDetailPK) get(2);
066    }
067
068    // -------------------------------------------------------------------------
069    // Primary key information
070    // -------------------------------------------------------------------------
071
072    @Override
073    public Record1<PartyContactMechanismPurposePK> key() {
074        return (Record1) super.key();
075    }
076
077    // -------------------------------------------------------------------------
078    // Constructors
079    // -------------------------------------------------------------------------
080
081    /**
082     * Create a detached PartyContactMechanismPurposes
083     */
084    public PartyContactMechanismPurposes() {
085        super(com.echothree.model.jooq.server.tables.contact.PartyContactMechanismPurposes.PartyContactMechanismPurposes);
086    }
087
088    /**
089     * Create a detached, initialised PartyContactMechanismPurposes
090     */
091    public PartyContactMechanismPurposes(PartyContactMechanismPurposePK PartyContactMechanismPurpose, PartyContactMechanismPurposeDetailPK ActiveDetail, PartyContactMechanismPurposeDetailPK LastDetail) {
092        super(com.echothree.model.jooq.server.tables.contact.PartyContactMechanismPurposes.PartyContactMechanismPurposes);
093
094        PartyContactMechanismPurpose(PartyContactMechanismPurpose);
095        ActiveDetail(ActiveDetail);
096        LastDetail(LastDetail);
097        resetTouchedOnNotNull();
098    }
099}