001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.records.term;
005
006
007import com.echothree.model.data.party.common.pk.PartyPK;
008import com.echothree.model.data.term.common.pk.PartyTermPK;
009import com.echothree.model.data.term.common.pk.TermPK;
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 PartyTerms extends UpdatableRecordImpl<PartyTerms> {
020
021    private static final long serialVersionUID = 1L;
022
023    /**
024     * Setter for <code>partyterms.ptrm_partytermid</code>.
025     */
026    public void PartyTerm(PartyTermPK value) {
027        set(0, value);
028    }
029
030    /**
031     * Getter for <code>partyterms.ptrm_partytermid</code>.
032     */
033    public PartyTermPK PartyTerm() {
034        return (PartyTermPK) get(0);
035    }
036
037    /**
038     * Setter for <code>partyterms.ptrm_par_partyid</code>.
039     */
040    public void Party(PartyPK value) {
041        set(1, value);
042    }
043
044    /**
045     * Getter for <code>partyterms.ptrm_par_partyid</code>.
046     */
047    public PartyPK Party() {
048        return (PartyPK) get(1);
049    }
050
051    /**
052     * Setter for <code>partyterms.ptrm_trm_termid</code>.
053     */
054    public void Term(TermPK value) {
055        set(2, value);
056    }
057
058    /**
059     * Getter for <code>partyterms.ptrm_trm_termid</code>.
060     */
061    public TermPK Term() {
062        return (TermPK) get(2);
063    }
064
065    /**
066     * Setter for <code>partyterms.ptrm_taxable</code>.
067     */
068    public void Taxable(Boolean value) {
069        set(3, value);
070    }
071
072    /**
073     * Getter for <code>partyterms.ptrm_taxable</code>.
074     */
075    public Boolean Taxable() {
076        return (Boolean) get(3);
077    }
078
079    /**
080     * Setter for <code>partyterms.ptrm_fromtime</code>.
081     */
082    public void FromTime(Long value) {
083        set(4, value);
084    }
085
086    /**
087     * Getter for <code>partyterms.ptrm_fromtime</code>.
088     */
089    public Long FromTime() {
090        return (Long) get(4);
091    }
092
093    /**
094     * Setter for <code>partyterms.ptrm_thrutime</code>.
095     */
096    public void ThruTime(Long value) {
097        set(5, value);
098    }
099
100    /**
101     * Getter for <code>partyterms.ptrm_thrutime</code>.
102     */
103    public Long ThruTime() {
104        return (Long) get(5);
105    }
106
107    // -------------------------------------------------------------------------
108    // Primary key information
109    // -------------------------------------------------------------------------
110
111    @Override
112    public Record1<PartyTermPK> key() {
113        return (Record1) super.key();
114    }
115
116    // -------------------------------------------------------------------------
117    // Constructors
118    // -------------------------------------------------------------------------
119
120    /**
121     * Create a detached PartyTerms
122     */
123    public PartyTerms() {
124        super(com.echothree.model.jooq.server.tables.term.PartyTerms.PartyTerms);
125    }
126
127    /**
128     * Create a detached, initialised PartyTerms
129     */
130    public PartyTerms(PartyTermPK PartyTerm, PartyPK Party, TermPK Term, Boolean Taxable, Long FromTime, Long ThruTime) {
131        super(com.echothree.model.jooq.server.tables.term.PartyTerms.PartyTerms);
132
133        PartyTerm(PartyTerm);
134        Party(Party);
135        Term(Term);
136        Taxable(Taxable);
137        FromTime(FromTime);
138        ThruTime(ThruTime);
139        resetTouchedOnNotNull();
140    }
141}