001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.records.communication;
005
006
007import com.echothree.model.data.communication.common.pk.CommunicationEventPK;
008import com.echothree.model.data.communication.common.pk.CommunicationEventRolePK;
009import com.echothree.model.data.communication.common.pk.CommunicationEventRoleTypePK;
010import com.echothree.model.data.party.common.pk.PartyPK;
011
012import org.jooq.Record1;
013import org.jooq.impl.UpdatableRecordImpl;
014
015
016/**
017 * This class is generated by jOOQ.
018 */
019@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
020public class CommunicationEventRoles extends UpdatableRecordImpl<CommunicationEventRoles> {
021
022    private static final long serialVersionUID = 1L;
023
024    /**
025     * Setter for
026     * <code>communicationeventroles.cmmnevr_communicationeventroleid</code>.
027     */
028    public void CommunicationEventRole(CommunicationEventRolePK value) {
029        set(0, value);
030    }
031
032    /**
033     * Getter for
034     * <code>communicationeventroles.cmmnevr_communicationeventroleid</code>.
035     */
036    public CommunicationEventRolePK CommunicationEventRole() {
037        return (CommunicationEventRolePK) get(0);
038    }
039
040    /**
041     * Setter for
042     * <code>communicationeventroles.cmmnevr_cmmnev_communicationeventid</code>.
043     */
044    public void CommunicationEvent(CommunicationEventPK value) {
045        set(1, value);
046    }
047
048    /**
049     * Getter for
050     * <code>communicationeventroles.cmmnevr_cmmnev_communicationeventid</code>.
051     */
052    public CommunicationEventPK CommunicationEvent() {
053        return (CommunicationEventPK) get(1);
054    }
055
056    /**
057     * Setter for <code>communicationeventroles.cmmnevr_par_partyid</code>.
058     */
059    public void Party(PartyPK value) {
060        set(2, value);
061    }
062
063    /**
064     * Getter for <code>communicationeventroles.cmmnevr_par_partyid</code>.
065     */
066    public PartyPK Party() {
067        return (PartyPK) get(2);
068    }
069
070    /**
071     * Setter for
072     * <code>communicationeventroles.cmmnevr_cmmnevrtyp_communicationeventroletypeid</code>.
073     */
074    public void CommunicationEventRoleType(CommunicationEventRoleTypePK value) {
075        set(3, value);
076    }
077
078    /**
079     * Getter for
080     * <code>communicationeventroles.cmmnevr_cmmnevrtyp_communicationeventroletypeid</code>.
081     */
082    public CommunicationEventRoleTypePK CommunicationEventRoleType() {
083        return (CommunicationEventRoleTypePK) get(3);
084    }
085
086    /**
087     * Setter for <code>communicationeventroles.cmmnevr_fromtime</code>.
088     */
089    public void FromTime(Long value) {
090        set(4, value);
091    }
092
093    /**
094     * Getter for <code>communicationeventroles.cmmnevr_fromtime</code>.
095     */
096    public Long FromTime() {
097        return (Long) get(4);
098    }
099
100    /**
101     * Setter for <code>communicationeventroles.cmmnevr_thrutime</code>.
102     */
103    public void ThruTime(Long value) {
104        set(5, value);
105    }
106
107    /**
108     * Getter for <code>communicationeventroles.cmmnevr_thrutime</code>.
109     */
110    public Long ThruTime() {
111        return (Long) get(5);
112    }
113
114    // -------------------------------------------------------------------------
115    // Primary key information
116    // -------------------------------------------------------------------------
117
118    @Override
119    public Record1<CommunicationEventRolePK> key() {
120        return (Record1) super.key();
121    }
122
123    // -------------------------------------------------------------------------
124    // Constructors
125    // -------------------------------------------------------------------------
126
127    /**
128     * Create a detached CommunicationEventRoles
129     */
130    public CommunicationEventRoles() {
131        super(com.echothree.model.jooq.server.tables.communication.CommunicationEventRoles.CommunicationEventRoles);
132    }
133
134    /**
135     * Create a detached, initialised CommunicationEventRoles
136     */
137    public CommunicationEventRoles(CommunicationEventRolePK CommunicationEventRole, CommunicationEventPK CommunicationEvent, PartyPK Party, CommunicationEventRoleTypePK CommunicationEventRoleType, Long FromTime, Long ThruTime) {
138        super(com.echothree.model.jooq.server.tables.communication.CommunicationEventRoles.CommunicationEventRoles);
139
140        CommunicationEventRole(CommunicationEventRole);
141        CommunicationEvent(CommunicationEvent);
142        Party(Party);
143        CommunicationEventRoleType(CommunicationEventRoleType);
144        FromTime(FromTime);
145        ThruTime(ThruTime);
146        resetTouchedOnNotNull();
147    }
148}