001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.records.employee;
005
006
007import com.echothree.model.data.employee.common.pk.EmploymentDetailPK;
008import com.echothree.model.data.employee.common.pk.EmploymentPK;
009import com.echothree.model.data.employee.common.pk.TerminationReasonPK;
010import com.echothree.model.data.employee.common.pk.TerminationTypePK;
011import com.echothree.model.data.party.common.pk.PartyPK;
012
013import org.jooq.Record1;
014import org.jooq.impl.UpdatableRecordImpl;
015
016
017/**
018 * This class is generated by jOOQ.
019 */
020@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
021public class EmploymentDetails extends UpdatableRecordImpl<EmploymentDetails> {
022
023    private static final long serialVersionUID = 1L;
024
025    /**
026     * Setter for <code>employmentdetails.empmntdt_employmentdetailid</code>.
027     */
028    public void EmploymentDetail(EmploymentDetailPK value) {
029        set(0, value);
030    }
031
032    /**
033     * Getter for <code>employmentdetails.empmntdt_employmentdetailid</code>.
034     */
035    public EmploymentDetailPK EmploymentDetail() {
036        return (EmploymentDetailPK) get(0);
037    }
038
039    /**
040     * Setter for <code>employmentdetails.empmntdt_empmnt_employmentid</code>.
041     */
042    public void Employment(EmploymentPK value) {
043        set(1, value);
044    }
045
046    /**
047     * Getter for <code>employmentdetails.empmntdt_empmnt_employmentid</code>.
048     */
049    public EmploymentPK Employment() {
050        return (EmploymentPK) get(1);
051    }
052
053    /**
054     * Setter for <code>employmentdetails.empmntdt_employmentname</code>.
055     */
056    public void EmploymentName(String value) {
057        set(2, value);
058    }
059
060    /**
061     * Getter for <code>employmentdetails.empmntdt_employmentname</code>.
062     */
063    public String EmploymentName() {
064        return (String) get(2);
065    }
066
067    /**
068     * Setter for <code>employmentdetails.empmntdt_par_partyid</code>.
069     */
070    public void Party(PartyPK value) {
071        set(3, value);
072    }
073
074    /**
075     * Getter for <code>employmentdetails.empmntdt_par_partyid</code>.
076     */
077    public PartyPK Party() {
078        return (PartyPK) get(3);
079    }
080
081    /**
082     * Setter for <code>employmentdetails.empmntdt_companypartyid</code>.
083     */
084    public void CompanyParty(PartyPK value) {
085        set(4, value);
086    }
087
088    /**
089     * Getter for <code>employmentdetails.empmntdt_companypartyid</code>.
090     */
091    public PartyPK CompanyParty() {
092        return (PartyPK) get(4);
093    }
094
095    /**
096     * Setter for <code>employmentdetails.empmntdt_starttime</code>.
097     */
098    public void StartTime(Long value) {
099        set(5, value);
100    }
101
102    /**
103     * Getter for <code>employmentdetails.empmntdt_starttime</code>.
104     */
105    public Long StartTime() {
106        return (Long) get(5);
107    }
108
109    /**
110     * Setter for <code>employmentdetails.empmntdt_endtime</code>.
111     */
112    public void EndTime(Long value) {
113        set(6, value);
114    }
115
116    /**
117     * Getter for <code>employmentdetails.empmntdt_endtime</code>.
118     */
119    public Long EndTime() {
120        return (Long) get(6);
121    }
122
123    /**
124     * Setter for
125     * <code>employmentdetails.empmntdt_trmntyp_terminationtypeid</code>.
126     */
127    public void TerminationType(TerminationTypePK value) {
128        set(7, value);
129    }
130
131    /**
132     * Getter for
133     * <code>employmentdetails.empmntdt_trmntyp_terminationtypeid</code>.
134     */
135    public TerminationTypePK TerminationType() {
136        return (TerminationTypePK) get(7);
137    }
138
139    /**
140     * Setter for
141     * <code>employmentdetails.empmntdt_trmnrsn_terminationreasonid</code>.
142     */
143    public void TerminationReason(TerminationReasonPK value) {
144        set(8, value);
145    }
146
147    /**
148     * Getter for
149     * <code>employmentdetails.empmntdt_trmnrsn_terminationreasonid</code>.
150     */
151    public TerminationReasonPK TerminationReason() {
152        return (TerminationReasonPK) get(8);
153    }
154
155    /**
156     * Setter for <code>employmentdetails.empmntdt_fromtime</code>.
157     */
158    public void FromTime(Long value) {
159        set(9, value);
160    }
161
162    /**
163     * Getter for <code>employmentdetails.empmntdt_fromtime</code>.
164     */
165    public Long FromTime() {
166        return (Long) get(9);
167    }
168
169    /**
170     * Setter for <code>employmentdetails.empmntdt_thrutime</code>.
171     */
172    public void ThruTime(Long value) {
173        set(10, value);
174    }
175
176    /**
177     * Getter for <code>employmentdetails.empmntdt_thrutime</code>.
178     */
179    public Long ThruTime() {
180        return (Long) get(10);
181    }
182
183    // -------------------------------------------------------------------------
184    // Primary key information
185    // -------------------------------------------------------------------------
186
187    @Override
188    public Record1<EmploymentDetailPK> key() {
189        return (Record1) super.key();
190    }
191
192    // -------------------------------------------------------------------------
193    // Constructors
194    // -------------------------------------------------------------------------
195
196    /**
197     * Create a detached EmploymentDetails
198     */
199    public EmploymentDetails() {
200        super(com.echothree.model.jooq.server.tables.employee.EmploymentDetails.EmploymentDetails);
201    }
202
203    /**
204     * Create a detached, initialised EmploymentDetails
205     */
206    public EmploymentDetails(EmploymentDetailPK EmploymentDetail, EmploymentPK Employment, String EmploymentName, PartyPK Party, PartyPK CompanyParty, Long StartTime, Long EndTime, TerminationTypePK TerminationType, TerminationReasonPK TerminationReason, Long FromTime, Long ThruTime) {
207        super(com.echothree.model.jooq.server.tables.employee.EmploymentDetails.EmploymentDetails);
208
209        EmploymentDetail(EmploymentDetail);
210        Employment(Employment);
211        EmploymentName(EmploymentName);
212        Party(Party);
213        CompanyParty(CompanyParty);
214        StartTime(StartTime);
215        EndTime(EndTime);
216        TerminationType(TerminationType);
217        TerminationReason(TerminationReason);
218        FromTime(FromTime);
219        ThruTime(ThruTime);
220        resetTouchedOnNotNull();
221    }
222}