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