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