001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.payment;
005
006
007import com.echothree.model.data.contact.common.pk.PartyContactMechanismPurposePK;
008import com.echothree.model.data.payment.common.pk.PartyPaymentMethodContactMechanismPK;
009import com.echothree.model.data.payment.common.pk.PartyPaymentMethodPK;
010import com.echothree.model.jooq.server.KeyRegistry;
011import com.echothree.model.jooq.server.tables.contact.PartyContactMechanismPurposes.PartyContactMechanismPurposesPath;
012import com.echothree.model.jooq.server.tables.payment.PartyPaymentMethods.PartyPaymentMethodsPath;
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 PartyPaymentMethodContactMechanisms extends TableImpl<com.echothree.model.jooq.server.records.payment.PartyPaymentMethodContactMechanisms> {
043
044    private static final long serialVersionUID = 1L;
045
046    /**
047     * The reference instance of
048     * <code>partypaymentmethodcontactmechanisms</code>
049     */
050    public static final PartyPaymentMethodContactMechanisms PartyPaymentMethodContactMechanisms = new PartyPaymentMethodContactMechanisms();
051
052    /**
053     * The class holding records for this type
054     */
055    @Override
056    public Class<com.echothree.model.jooq.server.records.payment.PartyPaymentMethodContactMechanisms> getRecordType() {
057        return com.echothree.model.jooq.server.records.payment.PartyPaymentMethodContactMechanisms.class;
058    }
059
060    /**
061     * The column
062     * <code>partypaymentmethodcontactmechanisms.parpmcmch_partypaymentmethodcontactmechanismid</code>.
063     */
064    public final TableField<com.echothree.model.jooq.server.records.payment.PartyPaymentMethodContactMechanisms, PartyPaymentMethodContactMechanismPK> PARTY_PAYMENT_METHOD_CONTACT_MECHANISM = createField(DSL.name("parpmcmch_partypaymentmethodcontactmechanismid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PartyPaymentMethodContactMechanismPK.class, id -> new com.echothree.model.data.payment.common.pk.PartyPaymentMethodContactMechanismPK(id), primaryKey -> primaryKey.getEntityId()));
065
066    /**
067     * The column
068     * <code>partypaymentmethodcontactmechanisms.parpmcmch_parpm_partypaymentmethodid</code>.
069     */
070    public final TableField<com.echothree.model.jooq.server.records.payment.PartyPaymentMethodContactMechanisms, PartyPaymentMethodPK> PARTY_PAYMENT_METHOD = createField(DSL.name("parpmcmch_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()));
071
072    /**
073     * The column
074     * <code>partypaymentmethodcontactmechanisms.parpmcmch_pcmp_partycontactmechanismpurposeid</code>.
075     */
076    public final TableField<com.echothree.model.jooq.server.records.payment.PartyPaymentMethodContactMechanisms, PartyContactMechanismPurposePK> PARTY_CONTACT_MECHANISM_PURPOSE = createField(DSL.name("parpmcmch_pcmp_partycontactmechanismpurposeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PartyContactMechanismPurposePK.class, id -> new com.echothree.model.data.contact.common.pk.PartyContactMechanismPurposePK(id), primaryKey -> primaryKey.getEntityId()));
077
078    /**
079     * The column
080     * <code>partypaymentmethodcontactmechanisms.parpmcmch_fromtime</code>.
081     */
082    public final TableField<com.echothree.model.jooq.server.records.payment.PartyPaymentMethodContactMechanisms, Long> FROM_TIME = createField(DSL.name("parpmcmch_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
083
084    /**
085     * The column
086     * <code>partypaymentmethodcontactmechanisms.parpmcmch_thrutime</code>.
087     */
088    public final TableField<com.echothree.model.jooq.server.records.payment.PartyPaymentMethodContactMechanisms, Long> THRU_TIME = createField(DSL.name("parpmcmch_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
089
090    private PartyPaymentMethodContactMechanisms(Name alias, Table<com.echothree.model.jooq.server.records.payment.PartyPaymentMethodContactMechanisms> aliased) {
091        this(alias, aliased, (Field<?>[]) null, null);
092    }
093
094    private PartyPaymentMethodContactMechanisms(Name alias, Table<com.echothree.model.jooq.server.records.payment.PartyPaymentMethodContactMechanisms> aliased, Field<?>[] parameters, Condition where) {
095        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
096    }
097
098    /**
099     * Create an aliased <code>partypaymentmethodcontactmechanisms</code> table
100     * reference
101     */
102    public PartyPaymentMethodContactMechanisms(String alias) {
103        this(DSL.name(alias), PartyPaymentMethodContactMechanisms);
104    }
105
106    /**
107     * Create an aliased <code>partypaymentmethodcontactmechanisms</code> table
108     * reference
109     */
110    public PartyPaymentMethodContactMechanisms(Name alias) {
111        this(alias, PartyPaymentMethodContactMechanisms);
112    }
113
114    /**
115     * Create a <code>partypaymentmethodcontactmechanisms</code> table reference
116     */
117    public PartyPaymentMethodContactMechanisms() {
118        this(DSL.name("partypaymentmethodcontactmechanisms"), null);
119    }
120
121    @Override
122    public UniqueKey<com.echothree.model.jooq.server.records.payment.PartyPaymentMethodContactMechanisms> getPrimaryKey() {
123        return KeyRegistry.PARTY_PAYMENT_METHOD_CONTACT_MECHANISMS_PK;
124    }
125
126    @Override
127    public List<UniqueKey<com.echothree.model.jooq.server.records.payment.PartyPaymentMethodContactMechanisms>> getUniqueKeys() {
128        return Arrays.asList(KeyRegistry.PARTY_PAYMENT_METHOD_CONTACT_MECHANISMS_PARTY_PAYMENT_METHOD_AND_PARTY_CONTACT_MECHANISM_PURPOSE_AND_THRU_TIME_UK);
129    }
130
131    @Override
132    public List<ForeignKey<com.echothree.model.jooq.server.records.payment.PartyPaymentMethodContactMechanisms, ?>> getReferences() {
133        return Arrays.asList(KeyRegistry.PARTY_PAYMENT_METHOD_CONTACT_MECHANISMS_PARTY_PAYMENT_METHOD_FK, KeyRegistry.PARTY_PAYMENT_METHOD_CONTACT_MECHANISMS_PARTY_CONTACT_MECHANISM_PURPOSE_FK);
134    }
135
136    private transient PartyPaymentMethodsPath _parpmcmch_parpm_partypaymentmethodid_fk;
137
138    /**
139     * Get the implicit join path to the <code>partypaymentmethods</code> table.
140     */
141    public PartyPaymentMethodsPath parpmcmch_parpm_partypaymentmethodid_fk() {
142        if (_parpmcmch_parpm_partypaymentmethodid_fk == null)
143            _parpmcmch_parpm_partypaymentmethodid_fk = new PartyPaymentMethodsPath(this, KeyRegistry.PARTY_PAYMENT_METHOD_CONTACT_MECHANISMS_PARTY_PAYMENT_METHOD_FK, null);
144
145        return _parpmcmch_parpm_partypaymentmethodid_fk;
146    }
147
148    private transient PartyContactMechanismPurposesPath _parpmcmch_pcmp_partycontactmechanismpurposeid_fk;
149
150    /**
151     * Get the implicit join path to the
152     * <code>partycontactmechanismpurposes</code> table.
153     */
154    public PartyContactMechanismPurposesPath parpmcmch_pcmp_partycontactmechanismpurposeid_fk() {
155        if (_parpmcmch_pcmp_partycontactmechanismpurposeid_fk == null)
156            _parpmcmch_pcmp_partycontactmechanismpurposeid_fk = new PartyContactMechanismPurposesPath(this, KeyRegistry.PARTY_PAYMENT_METHOD_CONTACT_MECHANISMS_PARTY_CONTACT_MECHANISM_PURPOSE_FK, null);
157
158        return _parpmcmch_pcmp_partycontactmechanismpurposeid_fk;
159    }
160
161    @Override
162    public PartyPaymentMethodContactMechanisms as(String alias) {
163        return new PartyPaymentMethodContactMechanisms(DSL.name(alias), this);
164    }
165
166    @Override
167    public PartyPaymentMethodContactMechanisms as(Name alias) {
168        return new PartyPaymentMethodContactMechanisms(alias, this);
169    }
170
171    @Override
172    public PartyPaymentMethodContactMechanisms as(Table<?> alias) {
173        return new PartyPaymentMethodContactMechanisms(alias.getQualifiedName(), this);
174    }
175
176    /**
177     * Rename this table
178     */
179    @Override
180    public PartyPaymentMethodContactMechanisms rename(String name) {
181        return new PartyPaymentMethodContactMechanisms(DSL.name(name), null);
182    }
183
184    /**
185     * Rename this table
186     */
187    @Override
188    public PartyPaymentMethodContactMechanisms rename(Name name) {
189        return new PartyPaymentMethodContactMechanisms(name, null);
190    }
191
192    /**
193     * Rename this table
194     */
195    @Override
196    public PartyPaymentMethodContactMechanisms rename(Table<?> name) {
197        return new PartyPaymentMethodContactMechanisms(name.getQualifiedName(), null);
198    }
199
200    /**
201     * Create an inline derived table from this table
202     */
203    @Override
204    public PartyPaymentMethodContactMechanisms where(Condition condition) {
205        return new PartyPaymentMethodContactMechanisms(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 PartyPaymentMethodContactMechanisms 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 PartyPaymentMethodContactMechanisms 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 PartyPaymentMethodContactMechanisms 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 PartyPaymentMethodContactMechanisms 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 PartyPaymentMethodContactMechanisms 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 PartyPaymentMethodContactMechanisms 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 PartyPaymentMethodContactMechanisms 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 PartyPaymentMethodContactMechanisms 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 PartyPaymentMethodContactMechanisms whereNotExists(TableLike<?> select) {
281        return where(DSL.notExists(select));
282    }
283}