001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.payment;
005
006
007import com.echothree.model.data.payment.common.pk.PaymentDeductionDetailPK;
008import com.echothree.model.data.payment.common.pk.PaymentDeductionPK;
009import com.echothree.model.data.payment.common.pk.PaymentDeductionTypePK;
010import com.echothree.model.data.payment.common.pk.PaymentPK;
011import com.echothree.model.jooq.server.KeyRegistry;
012import com.echothree.model.jooq.server.tables.payment.PaymentDeductionTypes.PaymentDeductionTypesPath;
013import com.echothree.model.jooq.server.tables.payment.PaymentDeductions.PaymentDeductionsPath;
014import com.echothree.model.jooq.server.tables.payment.Payments.PaymentsPath;
015
016import java.util.Arrays;
017import java.util.Collection;
018import java.util.List;
019
020import org.jooq.Condition;
021import org.jooq.Converter;
022import org.jooq.Field;
023import org.jooq.ForeignKey;
024import org.jooq.InverseForeignKey;
025import org.jooq.Name;
026import org.jooq.Path;
027import org.jooq.PlainSQL;
028import org.jooq.QueryPart;
029import org.jooq.Record;
030import org.jooq.SQL;
031import org.jooq.Stringly;
032import org.jooq.Table;
033import org.jooq.TableField;
034import org.jooq.TableLike;
035import org.jooq.TableOptions;
036import org.jooq.UniqueKey;
037import org.jooq.impl.DSL;
038import org.jooq.impl.Internal;
039import org.jooq.impl.SQLDataType;
040import org.jooq.impl.TableImpl;
041
042
043/**
044 * This class is generated by jOOQ.
045 */
046@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
047public class PaymentDeductionDetails extends TableImpl<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails> {
048
049    private static final long serialVersionUID = 1L;
050
051    /**
052     * The reference instance of <code>paymentdeductiondetails</code>
053     */
054    public static final PaymentDeductionDetails PaymentDeductionDetails = new PaymentDeductionDetails();
055
056    /**
057     * The class holding records for this type
058     */
059    @Override
060    public Class<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails> getRecordType() {
061        return com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails.class;
062    }
063
064    /**
065     * The column
066     * <code>paymentdeductiondetails.pymtddcdt_paymentdeductiondetailid</code>.
067     */
068    public final TableField<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails, PaymentDeductionDetailPK> PAYMENT_DEDUCTION_DETAIL = createField(DSL.name("pymtddcdt_paymentdeductiondetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PaymentDeductionDetailPK.class, id -> new com.echothree.model.data.payment.common.pk.PaymentDeductionDetailPK(id), primaryKey -> primaryKey.getEntityId()));
069
070    /**
071     * The column
072     * <code>paymentdeductiondetails.pymtddcdt_pymtddc_paymentdeductionid</code>.
073     */
074    public final TableField<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails, PaymentDeductionPK> PAYMENT_DEDUCTION = createField(DSL.name("pymtddcdt_pymtddc_paymentdeductionid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PaymentDeductionPK.class, id -> new com.echothree.model.data.payment.common.pk.PaymentDeductionPK(id), primaryKey -> primaryKey.getEntityId()));
075
076    /**
077     * The column
078     * <code>paymentdeductiondetails.pymtddcdt_paymentdeductionname</code>.
079     */
080    public final TableField<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails, String> PAYMENT_DEDUCTION_NAME = createField(DSL.name("pymtddcdt_paymentdeductionname"), SQLDataType.VARCHAR(40).nullable(false), this, "");
081
082    /**
083     * The column
084     * <code>paymentdeductiondetails.pymtddcdt_pymtddctyp_paymentdeductiontypeid</code>.
085     */
086    public final TableField<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails, PaymentDeductionTypePK> PAYMENT_DEDUCTION_TYPE = createField(DSL.name("pymtddcdt_pymtddctyp_paymentdeductiontypeid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, PaymentDeductionTypePK.class, id -> new com.echothree.model.data.payment.common.pk.PaymentDeductionTypePK(id), primaryKey -> primaryKey.getEntityId()));
087
088    /**
089     * The column <code>paymentdeductiondetails.pymtddcdt_pymt_paymentid</code>.
090     */
091    public final TableField<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails, PaymentPK> PAYMENT = createField(DSL.name("pymtddcdt_pymt_paymentid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, PaymentPK.class, id -> new com.echothree.model.data.payment.common.pk.PaymentPK(id), primaryKey -> primaryKey.getEntityId()));
092
093    /**
094     * The column <code>paymentdeductiondetails.pymtddcdt_amount</code>.
095     */
096    public final TableField<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails, Long> AMOUNT = createField(DSL.name("pymtddcdt_amount"), SQLDataType.BIGINT.nullable(false), this, "");
097
098    /**
099     * The column <code>paymentdeductiondetails.pymtddcdt_fromtime</code>.
100     */
101    public final TableField<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails, Long> FROM_TIME = createField(DSL.name("pymtddcdt_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
102
103    /**
104     * The column <code>paymentdeductiondetails.pymtddcdt_thrutime</code>.
105     */
106    public final TableField<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails, Long> THRU_TIME = createField(DSL.name("pymtddcdt_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
107
108    private PaymentDeductionDetails(Name alias, Table<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails> aliased) {
109        this(alias, aliased, (Field<?>[]) null, null);
110    }
111
112    private PaymentDeductionDetails(Name alias, Table<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails> aliased, Field<?>[] parameters, Condition where) {
113        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
114    }
115
116    /**
117     * Create an aliased <code>paymentdeductiondetails</code> table reference
118     */
119    public PaymentDeductionDetails(String alias) {
120        this(DSL.name(alias), PaymentDeductionDetails);
121    }
122
123    /**
124     * Create an aliased <code>paymentdeductiondetails</code> table reference
125     */
126    public PaymentDeductionDetails(Name alias) {
127        this(alias, PaymentDeductionDetails);
128    }
129
130    /**
131     * Create a <code>paymentdeductiondetails</code> table reference
132     */
133    public PaymentDeductionDetails() {
134        this(DSL.name("paymentdeductiondetails"), null);
135    }
136
137    public <O extends Record> PaymentDeductionDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails> parentPath) {
138        super(path, childPath, parentPath, PaymentDeductionDetails);
139    }
140
141    /**
142     * A subtype implementing {@link Path} for simplified path-based joins.
143     */
144    public static class PaymentDeductionDetailsPath extends PaymentDeductionDetails implements Path<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails> {
145
146        private static final long serialVersionUID = 1L;
147        public <O extends Record> PaymentDeductionDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails> parentPath) {
148            super(path, childPath, parentPath);
149        }
150        private PaymentDeductionDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails> aliased) {
151            super(alias, aliased);
152        }
153
154        @Override
155        public PaymentDeductionDetailsPath as(String alias) {
156            return new PaymentDeductionDetailsPath(DSL.name(alias), this);
157        }
158
159        @Override
160        public PaymentDeductionDetailsPath as(Name alias) {
161            return new PaymentDeductionDetailsPath(alias, this);
162        }
163
164        @Override
165        public PaymentDeductionDetailsPath as(Table<?> alias) {
166            return new PaymentDeductionDetailsPath(alias.getQualifiedName(), this);
167        }
168    }
169
170    @Override
171    public UniqueKey<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails> getPrimaryKey() {
172        return KeyRegistry.PAYMENT_DEDUCTION_DETAILS_PK;
173    }
174
175    @Override
176    public List<UniqueKey<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails>> getUniqueKeys() {
177        return Arrays.asList(KeyRegistry.PAYMENT_DEDUCTION_DETAILS_PAYMENT_DEDUCTION_AND_THRU_TIME_UK, KeyRegistry.PAYMENT_DEDUCTION_DETAILS_PAYMENT_DEDUCTION_NAME_AND_THRU_TIME_UK);
178    }
179
180    @Override
181    public List<ForeignKey<com.echothree.model.jooq.server.records.payment.PaymentDeductionDetails, ?>> getReferences() {
182        return Arrays.asList(KeyRegistry.PAYMENT_DEDUCTION_DETAILS_PAYMENT_FK, KeyRegistry.PAYMENT_DEDUCTION_DETAILS_PAYMENT_DEDUCTION_FK, KeyRegistry.PAYMENT_DEDUCTION_DETAILS_PAYMENT_DEDUCTION_TYPE_FK);
183    }
184
185    private transient PaymentsPath _pymtddcdt_pymt_paymentid_fk;
186
187    /**
188     * Get the implicit join path to the <code>payments</code> table.
189     */
190    public PaymentsPath pymtddcdt_pymt_paymentid_fk() {
191        if (_pymtddcdt_pymt_paymentid_fk == null)
192            _pymtddcdt_pymt_paymentid_fk = new PaymentsPath(this, KeyRegistry.PAYMENT_DEDUCTION_DETAILS_PAYMENT_FK, null);
193
194        return _pymtddcdt_pymt_paymentid_fk;
195    }
196
197    private transient PaymentDeductionsPath _pymtddcdt_pymtddc_paymentdeductionid_fk;
198
199    /**
200     * Get the implicit join path to the <code>paymentdeductions</code> table.
201     */
202    public PaymentDeductionsPath pymtddcdt_pymtddc_paymentdeductionid_fk() {
203        if (_pymtddcdt_pymtddc_paymentdeductionid_fk == null)
204            _pymtddcdt_pymtddc_paymentdeductionid_fk = new PaymentDeductionsPath(this, KeyRegistry.PAYMENT_DEDUCTION_DETAILS_PAYMENT_DEDUCTION_FK, null);
205
206        return _pymtddcdt_pymtddc_paymentdeductionid_fk;
207    }
208
209    private transient PaymentDeductionTypesPath _pymtddcdt_pymtddctyp_paymentdeductiontypeid_fk;
210
211    /**
212     * Get the implicit join path to the <code>paymentdeductiontypes</code>
213     * table.
214     */
215    public PaymentDeductionTypesPath pymtddcdt_pymtddctyp_paymentdeductiontypeid_fk() {
216        if (_pymtddcdt_pymtddctyp_paymentdeductiontypeid_fk == null)
217            _pymtddcdt_pymtddctyp_paymentdeductiontypeid_fk = new PaymentDeductionTypesPath(this, KeyRegistry.PAYMENT_DEDUCTION_DETAILS_PAYMENT_DEDUCTION_TYPE_FK, null);
218
219        return _pymtddcdt_pymtddctyp_paymentdeductiontypeid_fk;
220    }
221
222    @Override
223    public PaymentDeductionDetails as(String alias) {
224        return new PaymentDeductionDetails(DSL.name(alias), this);
225    }
226
227    @Override
228    public PaymentDeductionDetails as(Name alias) {
229        return new PaymentDeductionDetails(alias, this);
230    }
231
232    @Override
233    public PaymentDeductionDetails as(Table<?> alias) {
234        return new PaymentDeductionDetails(alias.getQualifiedName(), this);
235    }
236
237    /**
238     * Rename this table
239     */
240    @Override
241    public PaymentDeductionDetails rename(String name) {
242        return new PaymentDeductionDetails(DSL.name(name), null);
243    }
244
245    /**
246     * Rename this table
247     */
248    @Override
249    public PaymentDeductionDetails rename(Name name) {
250        return new PaymentDeductionDetails(name, null);
251    }
252
253    /**
254     * Rename this table
255     */
256    @Override
257    public PaymentDeductionDetails rename(Table<?> name) {
258        return new PaymentDeductionDetails(name.getQualifiedName(), null);
259    }
260
261    /**
262     * Create an inline derived table from this table
263     */
264    @Override
265    public PaymentDeductionDetails where(Condition condition) {
266        return new PaymentDeductionDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
267    }
268
269    /**
270     * Create an inline derived table from this table
271     */
272    @Override
273    public PaymentDeductionDetails where(Collection<? extends Condition> conditions) {
274        return where(DSL.and(conditions));
275    }
276
277    /**
278     * Create an inline derived table from this table
279     */
280    @Override
281    public PaymentDeductionDetails where(Condition... conditions) {
282        return where(DSL.and(conditions));
283    }
284
285    /**
286     * Create an inline derived table from this table
287     */
288    @Override
289    public PaymentDeductionDetails where(Field<Boolean> condition) {
290        return where(DSL.condition(condition));
291    }
292
293    /**
294     * Create an inline derived table from this table
295     */
296    @Override
297    @PlainSQL
298    public PaymentDeductionDetails where(SQL condition) {
299        return where(DSL.condition(condition));
300    }
301
302    /**
303     * Create an inline derived table from this table
304     */
305    @Override
306    @PlainSQL
307    public PaymentDeductionDetails where(@Stringly.SQL String condition) {
308        return where(DSL.condition(condition));
309    }
310
311    /**
312     * Create an inline derived table from this table
313     */
314    @Override
315    @PlainSQL
316    public PaymentDeductionDetails where(@Stringly.SQL String condition, Object... binds) {
317        return where(DSL.condition(condition, binds));
318    }
319
320    /**
321     * Create an inline derived table from this table
322     */
323    @Override
324    @PlainSQL
325    public PaymentDeductionDetails where(@Stringly.SQL String condition, QueryPart... parts) {
326        return where(DSL.condition(condition, parts));
327    }
328
329    /**
330     * Create an inline derived table from this table
331     */
332    @Override
333    public PaymentDeductionDetails whereExists(TableLike<?> select) {
334        return where(DSL.exists(select));
335    }
336
337    /**
338     * Create an inline derived table from this table
339     */
340    @Override
341    public PaymentDeductionDetails whereNotExists(TableLike<?> select) {
342        return where(DSL.notExists(select));
343    }
344}