001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.carrier;
005
006
007import com.echothree.model.data.carrier.common.pk.PartyCarrierAccountDetailPK;
008import com.echothree.model.data.carrier.common.pk.PartyCarrierAccountPK;
009import com.echothree.model.data.party.common.pk.PartyPK;
010import com.echothree.model.jooq.server.KeyRegistry;
011import com.echothree.model.jooq.server.tables.carrier.PartyCarrierAccounts.PartyCarrierAccountsPath;
012import com.echothree.model.jooq.server.tables.party.Parties.PartiesPath;
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.InverseForeignKey;
023import org.jooq.Name;
024import org.jooq.Path;
025import org.jooq.PlainSQL;
026import org.jooq.QueryPart;
027import org.jooq.Record;
028import org.jooq.SQL;
029import org.jooq.Stringly;
030import org.jooq.Table;
031import org.jooq.TableField;
032import org.jooq.TableLike;
033import org.jooq.TableOptions;
034import org.jooq.UniqueKey;
035import org.jooq.impl.DSL;
036import org.jooq.impl.Internal;
037import org.jooq.impl.SQLDataType;
038import org.jooq.impl.TableImpl;
039
040
041/**
042 * This class is generated by jOOQ.
043 */
044@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
045public class PartyCarrierAccountDetails extends TableImpl<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails> {
046
047    private static final long serialVersionUID = 1L;
048
049    /**
050     * The reference instance of <code>partycarrieraccountdetails</code>
051     */
052    public static final PartyCarrierAccountDetails PartyCarrierAccountDetails = new PartyCarrierAccountDetails();
053
054    /**
055     * The class holding records for this type
056     */
057    @Override
058    public Class<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails> getRecordType() {
059        return com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails.class;
060    }
061
062    /**
063     * The column
064     * <code>partycarrieraccountdetails.pcrractdt_partycarrieraccountdetailid</code>.
065     */
066    public final TableField<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails, PartyCarrierAccountDetailPK> PARTY_CARRIER_ACCOUNT_DETAIL = createField(DSL.name("pcrractdt_partycarrieraccountdetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PartyCarrierAccountDetailPK.class, id -> new com.echothree.model.data.carrier.common.pk.PartyCarrierAccountDetailPK(id), primaryKey -> primaryKey.getEntityId()));
067
068    /**
069     * The column
070     * <code>partycarrieraccountdetails.pcrractdt_pcrract_partycarrieraccountid</code>.
071     */
072    public final TableField<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails, PartyCarrierAccountPK> PARTY_CARRIER_ACCOUNT = createField(DSL.name("pcrractdt_pcrract_partycarrieraccountid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PartyCarrierAccountPK.class, id -> new com.echothree.model.data.carrier.common.pk.PartyCarrierAccountPK(id), primaryKey -> primaryKey.getEntityId()));
073
074    /**
075     * The column <code>partycarrieraccountdetails.pcrractdt_par_partyid</code>.
076     */
077    public final TableField<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails, PartyPK> PARTY = createField(DSL.name("pcrractdt_par_partyid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PartyPK.class, id -> new com.echothree.model.data.party.common.pk.PartyPK(id), primaryKey -> primaryKey.getEntityId()));
078
079    /**
080     * The column
081     * <code>partycarrieraccountdetails.pcrractdt_carrierpartyid</code>.
082     */
083    public final TableField<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails, PartyPK> CARRIER_PARTY = createField(DSL.name("pcrractdt_carrierpartyid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PartyPK.class, id -> new com.echothree.model.data.party.common.pk.PartyPK(id), primaryKey -> primaryKey.getEntityId()));
084
085    /**
086     * The column <code>partycarrieraccountdetails.pcrractdt_account</code>.
087     */
088    public final TableField<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails, String> ACCOUNT = createField(DSL.name("pcrractdt_account"), SQLDataType.VARCHAR(40).nullable(false), this, "");
089
090    /**
091     * The column
092     * <code>partycarrieraccountdetails.pcrractdt_alwaysusethirdpartybilling</code>.
093     */
094    public final TableField<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails, Boolean> ALWAYS_USE_THIRD_PARTY_BILLING = createField(DSL.name("pcrractdt_alwaysusethirdpartybilling"), SQLDataType.BIT.nullable(false), this, "");
095
096    /**
097     * The column <code>partycarrieraccountdetails.pcrractdt_fromtime</code>.
098     */
099    public final TableField<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails, Long> FROM_TIME = createField(DSL.name("pcrractdt_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
100
101    /**
102     * The column <code>partycarrieraccountdetails.pcrractdt_thrutime</code>.
103     */
104    public final TableField<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails, Long> THRU_TIME = createField(DSL.name("pcrractdt_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
105
106    private PartyCarrierAccountDetails(Name alias, Table<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails> aliased) {
107        this(alias, aliased, (Field<?>[]) null, null);
108    }
109
110    private PartyCarrierAccountDetails(Name alias, Table<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails> aliased, Field<?>[] parameters, Condition where) {
111        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
112    }
113
114    /**
115     * Create an aliased <code>partycarrieraccountdetails</code> table reference
116     */
117    public PartyCarrierAccountDetails(String alias) {
118        this(DSL.name(alias), PartyCarrierAccountDetails);
119    }
120
121    /**
122     * Create an aliased <code>partycarrieraccountdetails</code> table reference
123     */
124    public PartyCarrierAccountDetails(Name alias) {
125        this(alias, PartyCarrierAccountDetails);
126    }
127
128    /**
129     * Create a <code>partycarrieraccountdetails</code> table reference
130     */
131    public PartyCarrierAccountDetails() {
132        this(DSL.name("partycarrieraccountdetails"), null);
133    }
134
135    public <O extends Record> PartyCarrierAccountDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails> parentPath) {
136        super(path, childPath, parentPath, PartyCarrierAccountDetails);
137    }
138
139    /**
140     * A subtype implementing {@link Path} for simplified path-based joins.
141     */
142    public static class PartyCarrierAccountDetailsPath extends PartyCarrierAccountDetails implements Path<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails> {
143
144        private static final long serialVersionUID = 1L;
145        public <O extends Record> PartyCarrierAccountDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails> parentPath) {
146            super(path, childPath, parentPath);
147        }
148        private PartyCarrierAccountDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails> aliased) {
149            super(alias, aliased);
150        }
151
152        @Override
153        public PartyCarrierAccountDetailsPath as(String alias) {
154            return new PartyCarrierAccountDetailsPath(DSL.name(alias), this);
155        }
156
157        @Override
158        public PartyCarrierAccountDetailsPath as(Name alias) {
159            return new PartyCarrierAccountDetailsPath(alias, this);
160        }
161
162        @Override
163        public PartyCarrierAccountDetailsPath as(Table<?> alias) {
164            return new PartyCarrierAccountDetailsPath(alias.getQualifiedName(), this);
165        }
166    }
167
168    @Override
169    public UniqueKey<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails> getPrimaryKey() {
170        return KeyRegistry.PARTY_CARRIER_ACCOUNT_DETAILS_PK;
171    }
172
173    @Override
174    public List<UniqueKey<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails>> getUniqueKeys() {
175        return Arrays.asList(KeyRegistry.PARTY_CARRIER_ACCOUNT_DETAILS_PARTY_CARRIER_ACCOUNT_AND_THRU_TIME_UK, KeyRegistry.PARTY_CARRIER_ACCOUNT_DETAILS_PARTY_AND_CARRIER_PARTY_AND_THRU_TIME_UK);
176    }
177
178    @Override
179    public List<ForeignKey<com.echothree.model.jooq.server.records.carrier.PartyCarrierAccountDetails, ?>> getReferences() {
180        return Arrays.asList(KeyRegistry.PARTY_CARRIER_ACCOUNT_DETAILS_CARRIER_PARTY_FK, KeyRegistry.PARTY_CARRIER_ACCOUNT_DETAILS_PARTY_FK, KeyRegistry.PARTY_CARRIER_ACCOUNT_DETAILS_PARTY_CARRIER_ACCOUNT_FK);
181    }
182
183    private transient PartiesPath _pcrractdt_carrierpartyid_fk;
184
185    /**
186     * Get the implicit join path to the <code>parties</code> table, via the
187     * <code>pcrractdt_carrierpartyid_fk</code> key.
188     */
189    public PartiesPath pcrractdt_carrierpartyid_fk() {
190        if (_pcrractdt_carrierpartyid_fk == null)
191            _pcrractdt_carrierpartyid_fk = new PartiesPath(this, KeyRegistry.PARTY_CARRIER_ACCOUNT_DETAILS_CARRIER_PARTY_FK, null);
192
193        return _pcrractdt_carrierpartyid_fk;
194    }
195
196    private transient PartiesPath _pcrractdt_par_partyid_fk;
197
198    /**
199     * Get the implicit join path to the <code>parties</code> table, via the
200     * <code>pcrractdt_par_partyid_fk</code> key.
201     */
202    public PartiesPath pcrractdt_par_partyid_fk() {
203        if (_pcrractdt_par_partyid_fk == null)
204            _pcrractdt_par_partyid_fk = new PartiesPath(this, KeyRegistry.PARTY_CARRIER_ACCOUNT_DETAILS_PARTY_FK, null);
205
206        return _pcrractdt_par_partyid_fk;
207    }
208
209    private transient PartyCarrierAccountsPath _pcrractdt_pcrract_partycarrieraccountid_fk;
210
211    /**
212     * Get the implicit join path to the <code>partycarrieraccounts</code>
213     * table.
214     */
215    public PartyCarrierAccountsPath pcrractdt_pcrract_partycarrieraccountid_fk() {
216        if (_pcrractdt_pcrract_partycarrieraccountid_fk == null)
217            _pcrractdt_pcrract_partycarrieraccountid_fk = new PartyCarrierAccountsPath(this, KeyRegistry.PARTY_CARRIER_ACCOUNT_DETAILS_PARTY_CARRIER_ACCOUNT_FK, null);
218
219        return _pcrractdt_pcrract_partycarrieraccountid_fk;
220    }
221
222    @Override
223    public PartyCarrierAccountDetails as(String alias) {
224        return new PartyCarrierAccountDetails(DSL.name(alias), this);
225    }
226
227    @Override
228    public PartyCarrierAccountDetails as(Name alias) {
229        return new PartyCarrierAccountDetails(alias, this);
230    }
231
232    @Override
233    public PartyCarrierAccountDetails as(Table<?> alias) {
234        return new PartyCarrierAccountDetails(alias.getQualifiedName(), this);
235    }
236
237    /**
238     * Rename this table
239     */
240    @Override
241    public PartyCarrierAccountDetails rename(String name) {
242        return new PartyCarrierAccountDetails(DSL.name(name), null);
243    }
244
245    /**
246     * Rename this table
247     */
248    @Override
249    public PartyCarrierAccountDetails rename(Name name) {
250        return new PartyCarrierAccountDetails(name, null);
251    }
252
253    /**
254     * Rename this table
255     */
256    @Override
257    public PartyCarrierAccountDetails rename(Table<?> name) {
258        return new PartyCarrierAccountDetails(name.getQualifiedName(), null);
259    }
260
261    /**
262     * Create an inline derived table from this table
263     */
264    @Override
265    public PartyCarrierAccountDetails where(Condition condition) {
266        return new PartyCarrierAccountDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
267    }
268
269    /**
270     * Create an inline derived table from this table
271     */
272    @Override
273    public PartyCarrierAccountDetails where(Collection<? extends Condition> conditions) {
274        return where(DSL.and(conditions));
275    }
276
277    /**
278     * Create an inline derived table from this table
279     */
280    @Override
281    public PartyCarrierAccountDetails where(Condition... conditions) {
282        return where(DSL.and(conditions));
283    }
284
285    /**
286     * Create an inline derived table from this table
287     */
288    @Override
289    public PartyCarrierAccountDetails where(Field<Boolean> condition) {
290        return where(DSL.condition(condition));
291    }
292
293    /**
294     * Create an inline derived table from this table
295     */
296    @Override
297    @PlainSQL
298    public PartyCarrierAccountDetails where(SQL condition) {
299        return where(DSL.condition(condition));
300    }
301
302    /**
303     * Create an inline derived table from this table
304     */
305    @Override
306    @PlainSQL
307    public PartyCarrierAccountDetails where(@Stringly.SQL String condition) {
308        return where(DSL.condition(condition));
309    }
310
311    /**
312     * Create an inline derived table from this table
313     */
314    @Override
315    @PlainSQL
316    public PartyCarrierAccountDetails where(@Stringly.SQL String condition, Object... binds) {
317        return where(DSL.condition(condition, binds));
318    }
319
320    /**
321     * Create an inline derived table from this table
322     */
323    @Override
324    @PlainSQL
325    public PartyCarrierAccountDetails where(@Stringly.SQL String condition, QueryPart... parts) {
326        return where(DSL.condition(condition, parts));
327    }
328
329    /**
330     * Create an inline derived table from this table
331     */
332    @Override
333    public PartyCarrierAccountDetails whereExists(TableLike<?> select) {
334        return where(DSL.exists(select));
335    }
336
337    /**
338     * Create an inline derived table from this table
339     */
340    @Override
341    public PartyCarrierAccountDetails whereNotExists(TableLike<?> select) {
342        return where(DSL.notExists(select));
343    }
344}