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.ContactMechanismPurposePK;
008import com.echothree.model.data.contact.common.pk.ContactMechanismTypePK;
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 ContactMechanismPurposes extends UpdatableRecordImpl<ContactMechanismPurposes> {
019
020    private static final long serialVersionUID = 1L;
021
022    /**
023     * Setter for
024     * <code>contactmechanismpurposes.cmpr_contactmechanismpurposeid</code>.
025     */
026    public void ContactMechanismPurpose(ContactMechanismPurposePK value) {
027        set(0, value);
028    }
029
030    /**
031     * Getter for
032     * <code>contactmechanismpurposes.cmpr_contactmechanismpurposeid</code>.
033     */
034    public ContactMechanismPurposePK ContactMechanismPurpose() {
035        return (ContactMechanismPurposePK) get(0);
036    }
037
038    /**
039     * Setter for
040     * <code>contactmechanismpurposes.cmpr_contactmechanismpurposename</code>.
041     */
042    public void ContactMechanismPurposeName(String value) {
043        set(1, value);
044    }
045
046    /**
047     * Getter for
048     * <code>contactmechanismpurposes.cmpr_contactmechanismpurposename</code>.
049     */
050    public String ContactMechanismPurposeName() {
051        return (String) get(1);
052    }
053
054    /**
055     * Setter for
056     * <code>contactmechanismpurposes.cmpr_cmt_contactmechanismtypeid</code>.
057     */
058    public void ContactMechanismType(ContactMechanismTypePK value) {
059        set(2, value);
060    }
061
062    /**
063     * Getter for
064     * <code>contactmechanismpurposes.cmpr_cmt_contactmechanismtypeid</code>.
065     */
066    public ContactMechanismTypePK ContactMechanismType() {
067        return (ContactMechanismTypePK) get(2);
068    }
069
070    /**
071     * Setter for <code>contactmechanismpurposes.cmpr_eventsubscriber</code>.
072     */
073    public void EventSubscriber(Boolean value) {
074        set(3, value);
075    }
076
077    /**
078     * Getter for <code>contactmechanismpurposes.cmpr_eventsubscriber</code>.
079     */
080    public Boolean EventSubscriber() {
081        return (Boolean) get(3);
082    }
083
084    /**
085     * Setter for <code>contactmechanismpurposes.cmpr_isdefault</code>.
086     */
087    public void IsDefault(Boolean value) {
088        set(4, value);
089    }
090
091    /**
092     * Getter for <code>contactmechanismpurposes.cmpr_isdefault</code>.
093     */
094    public Boolean IsDefault() {
095        return (Boolean) get(4);
096    }
097
098    /**
099     * Setter for <code>contactmechanismpurposes.cmpr_sortorder</code>.
100     */
101    public void SortOrder(Integer value) {
102        set(5, value);
103    }
104
105    /**
106     * Getter for <code>contactmechanismpurposes.cmpr_sortorder</code>.
107     */
108    public Integer SortOrder() {
109        return (Integer) get(5);
110    }
111
112    // -------------------------------------------------------------------------
113    // Primary key information
114    // -------------------------------------------------------------------------
115
116    @Override
117    public Record1<ContactMechanismPurposePK> key() {
118        return (Record1) super.key();
119    }
120
121    // -------------------------------------------------------------------------
122    // Constructors
123    // -------------------------------------------------------------------------
124
125    /**
126     * Create a detached ContactMechanismPurposes
127     */
128    public ContactMechanismPurposes() {
129        super(com.echothree.model.jooq.server.tables.contact.ContactMechanismPurposes.ContactMechanismPurposes);
130    }
131
132    /**
133     * Create a detached, initialised ContactMechanismPurposes
134     */
135    public ContactMechanismPurposes(ContactMechanismPurposePK ContactMechanismPurpose, String ContactMechanismPurposeName, ContactMechanismTypePK ContactMechanismType, Boolean EventSubscriber, Boolean IsDefault, Integer SortOrder) {
136        super(com.echothree.model.jooq.server.tables.contact.ContactMechanismPurposes.ContactMechanismPurposes);
137
138        ContactMechanismPurpose(ContactMechanismPurpose);
139        ContactMechanismPurposeName(ContactMechanismPurposeName);
140        ContactMechanismType(ContactMechanismType);
141        EventSubscriber(EventSubscriber);
142        IsDefault(IsDefault);
143        SortOrder(SortOrder);
144        resetTouchedOnNotNull();
145    }
146}