001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.records.payment;
005
006
007import com.echothree.model.data.accounting.common.pk.CurrencyPK;
008import com.echothree.model.data.payment.common.pk.PartyPaymentMethodPK;
009import com.echothree.model.data.payment.common.pk.PaymentDetailPK;
010import com.echothree.model.data.payment.common.pk.PaymentPK;
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 PaymentDetails extends UpdatableRecordImpl<PaymentDetails> {
021
022    private static final long serialVersionUID = 1L;
023
024    /**
025     * Setter for <code>paymentdetails.pymtdt_paymentdetailid</code>.
026     */
027    public void PaymentDetail(PaymentDetailPK value) {
028        set(0, value);
029    }
030
031    /**
032     * Getter for <code>paymentdetails.pymtdt_paymentdetailid</code>.
033     */
034    public PaymentDetailPK PaymentDetail() {
035        return (PaymentDetailPK) get(0);
036    }
037
038    /**
039     * Setter for <code>paymentdetails.pymtdt_pymt_paymentid</code>.
040     */
041    public void Payment(PaymentPK value) {
042        set(1, value);
043    }
044
045    /**
046     * Getter for <code>paymentdetails.pymtdt_pymt_paymentid</code>.
047     */
048    public PaymentPK Payment() {
049        return (PaymentPK) get(1);
050    }
051
052    /**
053     * Setter for <code>paymentdetails.pymtdt_paymentname</code>.
054     */
055    public void PaymentName(String value) {
056        set(2, value);
057    }
058
059    /**
060     * Getter for <code>paymentdetails.pymtdt_paymentname</code>.
061     */
062    public String PaymentName() {
063        return (String) get(2);
064    }
065
066    /**
067     * Setter for <code>paymentdetails.pymtdt_parpm_partypaymentmethodid</code>.
068     */
069    public void PartyPaymentMethod(PartyPaymentMethodPK value) {
070        set(3, value);
071    }
072
073    /**
074     * Getter for <code>paymentdetails.pymtdt_parpm_partypaymentmethodid</code>.
075     */
076    public PartyPaymentMethodPK PartyPaymentMethod() {
077        return (PartyPaymentMethodPK) get(3);
078    }
079
080    /**
081     * Setter for <code>paymentdetails.pymtdt_cur_currencyid</code>.
082     */
083    public void Currency(CurrencyPK value) {
084        set(4, value);
085    }
086
087    /**
088     * Getter for <code>paymentdetails.pymtdt_cur_currencyid</code>.
089     */
090    public CurrencyPK Currency() {
091        return (CurrencyPK) get(4);
092    }
093
094    /**
095     * Setter for <code>paymentdetails.pymtdt_amount</code>.
096     */
097    public void Amount(Long value) {
098        set(5, value);
099    }
100
101    /**
102     * Getter for <code>paymentdetails.pymtdt_amount</code>.
103     */
104    public Long Amount() {
105        return (Long) get(5);
106    }
107
108    /**
109     * Setter for <code>paymentdetails.pymtdt_fromtime</code>.
110     */
111    public void FromTime(Long value) {
112        set(6, value);
113    }
114
115    /**
116     * Getter for <code>paymentdetails.pymtdt_fromtime</code>.
117     */
118    public Long FromTime() {
119        return (Long) get(6);
120    }
121
122    /**
123     * Setter for <code>paymentdetails.pymtdt_thrutime</code>.
124     */
125    public void ThruTime(Long value) {
126        set(7, value);
127    }
128
129    /**
130     * Getter for <code>paymentdetails.pymtdt_thrutime</code>.
131     */
132    public Long ThruTime() {
133        return (Long) get(7);
134    }
135
136    // -------------------------------------------------------------------------
137    // Primary key information
138    // -------------------------------------------------------------------------
139
140    @Override
141    public Record1<PaymentDetailPK> key() {
142        return (Record1) super.key();
143    }
144
145    // -------------------------------------------------------------------------
146    // Constructors
147    // -------------------------------------------------------------------------
148
149    /**
150     * Create a detached PaymentDetails
151     */
152    public PaymentDetails() {
153        super(com.echothree.model.jooq.server.tables.payment.PaymentDetails.PaymentDetails);
154    }
155
156    /**
157     * Create a detached, initialised PaymentDetails
158     */
159    public PaymentDetails(PaymentDetailPK PaymentDetail, PaymentPK Payment, String PaymentName, PartyPaymentMethodPK PartyPaymentMethod, CurrencyPK Currency, Long Amount, Long FromTime, Long ThruTime) {
160        super(com.echothree.model.jooq.server.tables.payment.PaymentDetails.PaymentDetails);
161
162        PaymentDetail(PaymentDetail);
163        Payment(Payment);
164        PaymentName(PaymentName);
165        PartyPaymentMethod(PartyPaymentMethod);
166        Currency(Currency);
167        Amount(Amount);
168        FromTime(FromTime);
169        ThruTime(ThruTime);
170        resetTouchedOnNotNull();
171    }
172}