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