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