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