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.ContactMechanismDetailPK;
008import com.echothree.model.data.contact.common.pk.ContactMechanismPK;
009import com.echothree.model.data.contact.common.pk.ContactMechanismTypePK;
010
011import org.jooq.Record1;
012import org.jooq.impl.UpdatableRecordImpl;
013
014
015/**
016 * This class is generated by jOOQ.
017 */
018@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
019public class ContactMechanismDetails extends UpdatableRecordImpl<ContactMechanismDetails> {
020
021    private static final long serialVersionUID = 1L;
022
023    /**
024     * Setter for
025     * <code>contactmechanismdetails.cmchdt_contactmechanismdetailid</code>.
026     */
027    public void ContactMechanismDetail(ContactMechanismDetailPK value) {
028        set(0, value);
029    }
030
031    /**
032     * Getter for
033     * <code>contactmechanismdetails.cmchdt_contactmechanismdetailid</code>.
034     */
035    public ContactMechanismDetailPK ContactMechanismDetail() {
036        return (ContactMechanismDetailPK) get(0);
037    }
038
039    /**
040     * Setter for
041     * <code>contactmechanismdetails.cmchdt_cmch_contactmechanismid</code>.
042     */
043    public void ContactMechanism(ContactMechanismPK value) {
044        set(1, value);
045    }
046
047    /**
048     * Getter for
049     * <code>contactmechanismdetails.cmchdt_cmch_contactmechanismid</code>.
050     */
051    public ContactMechanismPK ContactMechanism() {
052        return (ContactMechanismPK) get(1);
053    }
054
055    /**
056     * Setter for
057     * <code>contactmechanismdetails.cmchdt_contactmechanismname</code>.
058     */
059    public void ContactMechanismName(String value) {
060        set(2, value);
061    }
062
063    /**
064     * Getter for
065     * <code>contactmechanismdetails.cmchdt_contactmechanismname</code>.
066     */
067    public String ContactMechanismName() {
068        return (String) get(2);
069    }
070
071    /**
072     * Setter for
073     * <code>contactmechanismdetails.cmchdt_cmt_contactmechanismtypeid</code>.
074     */
075    public void ContactMechanismType(ContactMechanismTypePK value) {
076        set(3, value);
077    }
078
079    /**
080     * Getter for
081     * <code>contactmechanismdetails.cmchdt_cmt_contactmechanismtypeid</code>.
082     */
083    public ContactMechanismTypePK ContactMechanismType() {
084        return (ContactMechanismTypePK) get(3);
085    }
086
087    /**
088     * Setter for <code>contactmechanismdetails.cmchdt_allowsolicitation</code>.
089     */
090    public void AllowSolicitation(Boolean value) {
091        set(4, value);
092    }
093
094    /**
095     * Getter for <code>contactmechanismdetails.cmchdt_allowsolicitation</code>.
096     */
097    public Boolean AllowSolicitation() {
098        return (Boolean) get(4);
099    }
100
101    /**
102     * Setter for <code>contactmechanismdetails.cmchdt_fromtime</code>.
103     */
104    public void FromTime(Long value) {
105        set(5, value);
106    }
107
108    /**
109     * Getter for <code>contactmechanismdetails.cmchdt_fromtime</code>.
110     */
111    public Long FromTime() {
112        return (Long) get(5);
113    }
114
115    /**
116     * Setter for <code>contactmechanismdetails.cmchdt_thrutime</code>.
117     */
118    public void ThruTime(Long value) {
119        set(6, value);
120    }
121
122    /**
123     * Getter for <code>contactmechanismdetails.cmchdt_thrutime</code>.
124     */
125    public Long ThruTime() {
126        return (Long) get(6);
127    }
128
129    // -------------------------------------------------------------------------
130    // Primary key information
131    // -------------------------------------------------------------------------
132
133    @Override
134    public Record1<ContactMechanismDetailPK> key() {
135        return (Record1) super.key();
136    }
137
138    // -------------------------------------------------------------------------
139    // Constructors
140    // -------------------------------------------------------------------------
141
142    /**
143     * Create a detached ContactMechanismDetails
144     */
145    public ContactMechanismDetails() {
146        super(com.echothree.model.jooq.server.tables.contact.ContactMechanismDetails.ContactMechanismDetails);
147    }
148
149    /**
150     * Create a detached, initialised ContactMechanismDetails
151     */
152    public ContactMechanismDetails(ContactMechanismDetailPK ContactMechanismDetail, ContactMechanismPK ContactMechanism, String ContactMechanismName, ContactMechanismTypePK ContactMechanismType, Boolean AllowSolicitation, Long FromTime, Long ThruTime) {
153        super(com.echothree.model.jooq.server.tables.contact.ContactMechanismDetails.ContactMechanismDetails);
154
155        ContactMechanismDetail(ContactMechanismDetail);
156        ContactMechanism(ContactMechanism);
157        ContactMechanismName(ContactMechanismName);
158        ContactMechanismType(ContactMechanismType);
159        AllowSolicitation(AllowSolicitation);
160        FromTime(FromTime);
161        ThruTime(ThruTime);
162        resetTouchedOnNotNull();
163    }
164}