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.ContactMechanismPK;
008import com.echothree.model.data.contact.common.pk.ContactTelephonePK;
009import com.echothree.model.data.geo.common.pk.GeoCodePK;
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 ContactTelephones extends UpdatableRecordImpl<ContactTelephones> {
020
021    private static final long serialVersionUID = 1L;
022
023    /**
024     * Setter for <code>contacttelephones.cttp_contacttelephoneid</code>.
025     */
026    public void ContactTelephone(ContactTelephonePK value) {
027        set(0, value);
028    }
029
030    /**
031     * Getter for <code>contacttelephones.cttp_contacttelephoneid</code>.
032     */
033    public ContactTelephonePK ContactTelephone() {
034        return (ContactTelephonePK) get(0);
035    }
036
037    /**
038     * Setter for <code>contacttelephones.cttp_cmch_contactmechanismid</code>.
039     */
040    public void ContactMechanism(ContactMechanismPK value) {
041        set(1, value);
042    }
043
044    /**
045     * Getter for <code>contacttelephones.cttp_cmch_contactmechanismid</code>.
046     */
047    public ContactMechanismPK ContactMechanism() {
048        return (ContactMechanismPK) get(1);
049    }
050
051    /**
052     * Setter for <code>contacttelephones.cttp_countrygeocodeid</code>.
053     */
054    public void CountryGeoCode(GeoCodePK value) {
055        set(2, value);
056    }
057
058    /**
059     * Getter for <code>contacttelephones.cttp_countrygeocodeid</code>.
060     */
061    public GeoCodePK CountryGeoCode() {
062        return (GeoCodePK) get(2);
063    }
064
065    /**
066     * Setter for <code>contacttelephones.cttp_areacode</code>.
067     */
068    public void AreaCode(String value) {
069        set(3, value);
070    }
071
072    /**
073     * Getter for <code>contacttelephones.cttp_areacode</code>.
074     */
075    public String AreaCode() {
076        return (String) get(3);
077    }
078
079    /**
080     * Setter for <code>contacttelephones.cttp_telephonenumber</code>.
081     */
082    public void TelephoneNumber(String value) {
083        set(4, value);
084    }
085
086    /**
087     * Getter for <code>contacttelephones.cttp_telephonenumber</code>.
088     */
089    public String TelephoneNumber() {
090        return (String) get(4);
091    }
092
093    /**
094     * Setter for <code>contacttelephones.cttp_telephoneextension</code>.
095     */
096    public void TelephoneExtension(String value) {
097        set(5, value);
098    }
099
100    /**
101     * Getter for <code>contacttelephones.cttp_telephoneextension</code>.
102     */
103    public String TelephoneExtension() {
104        return (String) get(5);
105    }
106
107    /**
108     * Setter for <code>contacttelephones.cttp_fromtime</code>.
109     */
110    public void FromTime(Long value) {
111        set(6, value);
112    }
113
114    /**
115     * Getter for <code>contacttelephones.cttp_fromtime</code>.
116     */
117    public Long FromTime() {
118        return (Long) get(6);
119    }
120
121    /**
122     * Setter for <code>contacttelephones.cttp_thrutime</code>.
123     */
124    public void ThruTime(Long value) {
125        set(7, value);
126    }
127
128    /**
129     * Getter for <code>contacttelephones.cttp_thrutime</code>.
130     */
131    public Long ThruTime() {
132        return (Long) get(7);
133    }
134
135    // -------------------------------------------------------------------------
136    // Primary key information
137    // -------------------------------------------------------------------------
138
139    @Override
140    public Record1<ContactTelephonePK> key() {
141        return (Record1) super.key();
142    }
143
144    // -------------------------------------------------------------------------
145    // Constructors
146    // -------------------------------------------------------------------------
147
148    /**
149     * Create a detached ContactTelephones
150     */
151    public ContactTelephones() {
152        super(com.echothree.model.jooq.server.tables.contact.ContactTelephones.ContactTelephones);
153    }
154
155    /**
156     * Create a detached, initialised ContactTelephones
157     */
158    public ContactTelephones(ContactTelephonePK ContactTelephone, ContactMechanismPK ContactMechanism, GeoCodePK CountryGeoCode, String AreaCode, String TelephoneNumber, String TelephoneExtension, Long FromTime, Long ThruTime) {
159        super(com.echothree.model.jooq.server.tables.contact.ContactTelephones.ContactTelephones);
160
161        ContactTelephone(ContactTelephone);
162        ContactMechanism(ContactMechanism);
163        CountryGeoCode(CountryGeoCode);
164        AreaCode(AreaCode);
165        TelephoneNumber(TelephoneNumber);
166        TelephoneExtension(TelephoneExtension);
167        FromTime(FromTime);
168        ThruTime(ThruTime);
169        resetTouchedOnNotNull();
170    }
171}