001/*
002 * This file is generated by jOOQ.
003 */
004package com.echothree.model.jooq.server.tables.party;
005
006
007import com.echothree.model.data.core.common.pk.ApplicationEditorPK;
008import com.echothree.model.data.core.common.pk.ApplicationEditorUsePK;
009import com.echothree.model.data.party.common.pk.PartyApplicationEditorUseDetailPK;
010import com.echothree.model.data.party.common.pk.PartyApplicationEditorUsePK;
011import com.echothree.model.data.party.common.pk.PartyPK;
012import com.echothree.model.jooq.server.KeyRegistry;
013import com.echothree.model.jooq.server.tables.core.ApplicationEditorUses.ApplicationEditorUsesPath;
014import com.echothree.model.jooq.server.tables.core.ApplicationEditors.ApplicationEditorsPath;
015import com.echothree.model.jooq.server.tables.party.Parties.PartiesPath;
016import com.echothree.model.jooq.server.tables.party.PartyApplicationEditorUses.PartyApplicationEditorUsesPath;
017
018import java.util.Arrays;
019import java.util.Collection;
020import java.util.List;
021
022import org.jooq.Condition;
023import org.jooq.Converter;
024import org.jooq.Field;
025import org.jooq.ForeignKey;
026import org.jooq.InverseForeignKey;
027import org.jooq.Name;
028import org.jooq.Path;
029import org.jooq.PlainSQL;
030import org.jooq.QueryPart;
031import org.jooq.Record;
032import org.jooq.SQL;
033import org.jooq.Stringly;
034import org.jooq.Table;
035import org.jooq.TableField;
036import org.jooq.TableLike;
037import org.jooq.TableOptions;
038import org.jooq.UniqueKey;
039import org.jooq.impl.DSL;
040import org.jooq.impl.Internal;
041import org.jooq.impl.SQLDataType;
042import org.jooq.impl.TableImpl;
043
044
045/**
046 * This class is generated by jOOQ.
047 */
048@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
049public class PartyApplicationEditorUseDetails extends TableImpl<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails> {
050
051    private static final long serialVersionUID = 1L;
052
053    /**
054     * The reference instance of <code>partyapplicationeditorusedetails</code>
055     */
056    public static final PartyApplicationEditorUseDetails PartyApplicationEditorUseDetails = new PartyApplicationEditorUseDetails();
057
058    /**
059     * The class holding records for this type
060     */
061    @Override
062    public Class<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails> getRecordType() {
063        return com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails.class;
064    }
065
066    /**
067     * The column
068     * <code>partyapplicationeditorusedetails.parappledtrusedt_partyapplicationeditorusedetailid</code>.
069     */
070    public final TableField<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails, PartyApplicationEditorUseDetailPK> PARTY_APPLICATION_EDITOR_USE_DETAIL = createField(DSL.name("parappledtrusedt_partyapplicationeditorusedetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PartyApplicationEditorUseDetailPK.class, id -> new com.echothree.model.data.party.common.pk.PartyApplicationEditorUseDetailPK(id), primaryKey -> primaryKey.getEntityId()));
071
072    /**
073     * The column
074     * <code>partyapplicationeditorusedetails.parappledtrusedt_parappledtruse_partyapplicationeditoruseid</code>.
075     */
076    public final TableField<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails, PartyApplicationEditorUsePK> PARTY_APPLICATION_EDITOR_USE = createField(DSL.name("parappledtrusedt_parappledtruse_partyapplicationeditoruseid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PartyApplicationEditorUsePK.class, id -> new com.echothree.model.data.party.common.pk.PartyApplicationEditorUsePK(id), primaryKey -> primaryKey.getEntityId()));
077
078    /**
079     * The column
080     * <code>partyapplicationeditorusedetails.parappledtrusedt_par_partyid</code>.
081     */
082    public final TableField<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails, PartyPK> PARTY = createField(DSL.name("parappledtrusedt_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()));
083
084    /**
085     * The column
086     * <code>partyapplicationeditorusedetails.parappledtrusedt_appledtruse_applicationeditoruseid</code>.
087     */
088    public final TableField<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails, ApplicationEditorUsePK> APPLICATION_EDITOR_USE = createField(DSL.name("parappledtrusedt_appledtruse_applicationeditoruseid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ApplicationEditorUsePK.class, id -> new com.echothree.model.data.core.common.pk.ApplicationEditorUsePK(id), primaryKey -> primaryKey.getEntityId()));
089
090    /**
091     * The column
092     * <code>partyapplicationeditorusedetails.parappledtrusedt_appledtr_applicationeditorid</code>.
093     */
094    public final TableField<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails, ApplicationEditorPK> APPLICATION_EDITOR = createField(DSL.name("parappledtrusedt_appledtr_applicationeditorid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, ApplicationEditorPK.class, id -> new com.echothree.model.data.core.common.pk.ApplicationEditorPK(id), primaryKey -> primaryKey.getEntityId()));
095
096    /**
097     * The column
098     * <code>partyapplicationeditorusedetails.parappledtrusedt_preferredheight</code>.
099     */
100    public final TableField<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails, Integer> PREFERRED_HEIGHT = createField(DSL.name("parappledtrusedt_preferredheight"), SQLDataType.INTEGER, this, "");
101
102    /**
103     * The column
104     * <code>partyapplicationeditorusedetails.parappledtrusedt_preferredwidth</code>.
105     */
106    public final TableField<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails, Integer> PREFERRED_WIDTH = createField(DSL.name("parappledtrusedt_preferredwidth"), SQLDataType.INTEGER, this, "");
107
108    /**
109     * The column
110     * <code>partyapplicationeditorusedetails.parappledtrusedt_fromtime</code>.
111     */
112    public final TableField<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails, Long> FROM_TIME = createField(DSL.name("parappledtrusedt_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
113
114    /**
115     * The column
116     * <code>partyapplicationeditorusedetails.parappledtrusedt_thrutime</code>.
117     */
118    public final TableField<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails, Long> THRU_TIME = createField(DSL.name("parappledtrusedt_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
119
120    private PartyApplicationEditorUseDetails(Name alias, Table<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails> aliased) {
121        this(alias, aliased, (Field<?>[]) null, null);
122    }
123
124    private PartyApplicationEditorUseDetails(Name alias, Table<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails> aliased, Field<?>[] parameters, Condition where) {
125        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
126    }
127
128    /**
129     * Create an aliased <code>partyapplicationeditorusedetails</code> table
130     * reference
131     */
132    public PartyApplicationEditorUseDetails(String alias) {
133        this(DSL.name(alias), PartyApplicationEditorUseDetails);
134    }
135
136    /**
137     * Create an aliased <code>partyapplicationeditorusedetails</code> table
138     * reference
139     */
140    public PartyApplicationEditorUseDetails(Name alias) {
141        this(alias, PartyApplicationEditorUseDetails);
142    }
143
144    /**
145     * Create a <code>partyapplicationeditorusedetails</code> table reference
146     */
147    public PartyApplicationEditorUseDetails() {
148        this(DSL.name("partyapplicationeditorusedetails"), null);
149    }
150
151    public <O extends Record> PartyApplicationEditorUseDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails> parentPath) {
152        super(path, childPath, parentPath, PartyApplicationEditorUseDetails);
153    }
154
155    /**
156     * A subtype implementing {@link Path} for simplified path-based joins.
157     */
158    public static class PartyApplicationEditorUseDetailsPath extends PartyApplicationEditorUseDetails implements Path<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails> {
159
160        private static final long serialVersionUID = 1L;
161        public <O extends Record> PartyApplicationEditorUseDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails> parentPath) {
162            super(path, childPath, parentPath);
163        }
164        private PartyApplicationEditorUseDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails> aliased) {
165            super(alias, aliased);
166        }
167
168        @Override
169        public PartyApplicationEditorUseDetailsPath as(String alias) {
170            return new PartyApplicationEditorUseDetailsPath(DSL.name(alias), this);
171        }
172
173        @Override
174        public PartyApplicationEditorUseDetailsPath as(Name alias) {
175            return new PartyApplicationEditorUseDetailsPath(alias, this);
176        }
177
178        @Override
179        public PartyApplicationEditorUseDetailsPath as(Table<?> alias) {
180            return new PartyApplicationEditorUseDetailsPath(alias.getQualifiedName(), this);
181        }
182    }
183
184    @Override
185    public UniqueKey<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails> getPrimaryKey() {
186        return KeyRegistry.PARTY_APPLICATION_EDITOR_USE_DETAILS_PK;
187    }
188
189    @Override
190    public List<UniqueKey<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails>> getUniqueKeys() {
191        return Arrays.asList(KeyRegistry.PARTY_APPLICATION_EDITOR_USE_DETAILS_PARTY_APPLICATION_EDITOR_USE_AND_THRU_TIME_UK, KeyRegistry.PARTY_APPLICATION_EDITOR_USE_DETAILS_PARTY_AND_APPLICATION_EDITOR_USE_AND_THRU_TIME_UK);
192    }
193
194    @Override
195    public List<ForeignKey<com.echothree.model.jooq.server.records.party.PartyApplicationEditorUseDetails, ?>> getReferences() {
196        return Arrays.asList(KeyRegistry.PARTY_APPLICATION_EDITOR_USE_DETAILS_APPLICATION_EDITOR_FK, KeyRegistry.PARTY_APPLICATION_EDITOR_USE_DETAILS_APPLICATION_EDITOR_USE_FK, KeyRegistry.PARTY_APPLICATION_EDITOR_USE_DETAILS_PARTY_FK, KeyRegistry.PARTY_APPLICATION_EDITOR_USE_DETAILS_PARTY_APPLICATION_EDITOR_USE_FK);
197    }
198
199    private transient ApplicationEditorsPath _parappledtrusedt_appledtr_applicationeditorid_fk;
200
201    /**
202     * Get the implicit join path to the <code>applicationeditors</code> table.
203     */
204    public ApplicationEditorsPath parappledtrusedt_appledtr_applicationeditorid_fk() {
205        if (_parappledtrusedt_appledtr_applicationeditorid_fk == null)
206            _parappledtrusedt_appledtr_applicationeditorid_fk = new ApplicationEditorsPath(this, KeyRegistry.PARTY_APPLICATION_EDITOR_USE_DETAILS_APPLICATION_EDITOR_FK, null);
207
208        return _parappledtrusedt_appledtr_applicationeditorid_fk;
209    }
210
211    private transient ApplicationEditorUsesPath _parappledtrusedt_appledtruse_applicationeditoruseid_fk;
212
213    /**
214     * Get the implicit join path to the <code>applicationeditoruses</code>
215     * table.
216     */
217    public ApplicationEditorUsesPath parappledtrusedt_appledtruse_applicationeditoruseid_fk() {
218        if (_parappledtrusedt_appledtruse_applicationeditoruseid_fk == null)
219            _parappledtrusedt_appledtruse_applicationeditoruseid_fk = new ApplicationEditorUsesPath(this, KeyRegistry.PARTY_APPLICATION_EDITOR_USE_DETAILS_APPLICATION_EDITOR_USE_FK, null);
220
221        return _parappledtrusedt_appledtruse_applicationeditoruseid_fk;
222    }
223
224    private transient PartiesPath _parappledtrusedt_par_partyid_fk;
225
226    /**
227     * Get the implicit join path to the <code>parties</code> table.
228     */
229    public PartiesPath parappledtrusedt_par_partyid_fk() {
230        if (_parappledtrusedt_par_partyid_fk == null)
231            _parappledtrusedt_par_partyid_fk = new PartiesPath(this, KeyRegistry.PARTY_APPLICATION_EDITOR_USE_DETAILS_PARTY_FK, null);
232
233        return _parappledtrusedt_par_partyid_fk;
234    }
235
236    private transient PartyApplicationEditorUsesPath _parappledtrusedt_parappledtruse_partyapplicationeditoruseid_fk;
237
238    /**
239     * Get the implicit join path to the <code>partyapplicationeditoruses</code>
240     * table.
241     */
242    public PartyApplicationEditorUsesPath parappledtrusedt_parappledtruse_partyapplicationeditoruseid_fk() {
243        if (_parappledtrusedt_parappledtruse_partyapplicationeditoruseid_fk == null)
244            _parappledtrusedt_parappledtruse_partyapplicationeditoruseid_fk = new PartyApplicationEditorUsesPath(this, KeyRegistry.PARTY_APPLICATION_EDITOR_USE_DETAILS_PARTY_APPLICATION_EDITOR_USE_FK, null);
245
246        return _parappledtrusedt_parappledtruse_partyapplicationeditoruseid_fk;
247    }
248
249    @Override
250    public PartyApplicationEditorUseDetails as(String alias) {
251        return new PartyApplicationEditorUseDetails(DSL.name(alias), this);
252    }
253
254    @Override
255    public PartyApplicationEditorUseDetails as(Name alias) {
256        return new PartyApplicationEditorUseDetails(alias, this);
257    }
258
259    @Override
260    public PartyApplicationEditorUseDetails as(Table<?> alias) {
261        return new PartyApplicationEditorUseDetails(alias.getQualifiedName(), this);
262    }
263
264    /**
265     * Rename this table
266     */
267    @Override
268    public PartyApplicationEditorUseDetails rename(String name) {
269        return new PartyApplicationEditorUseDetails(DSL.name(name), null);
270    }
271
272    /**
273     * Rename this table
274     */
275    @Override
276    public PartyApplicationEditorUseDetails rename(Name name) {
277        return new PartyApplicationEditorUseDetails(name, null);
278    }
279
280    /**
281     * Rename this table
282     */
283    @Override
284    public PartyApplicationEditorUseDetails rename(Table<?> name) {
285        return new PartyApplicationEditorUseDetails(name.getQualifiedName(), null);
286    }
287
288    /**
289     * Create an inline derived table from this table
290     */
291    @Override
292    public PartyApplicationEditorUseDetails where(Condition condition) {
293        return new PartyApplicationEditorUseDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
294    }
295
296    /**
297     * Create an inline derived table from this table
298     */
299    @Override
300    public PartyApplicationEditorUseDetails where(Collection<? extends Condition> conditions) {
301        return where(DSL.and(conditions));
302    }
303
304    /**
305     * Create an inline derived table from this table
306     */
307    @Override
308    public PartyApplicationEditorUseDetails where(Condition... conditions) {
309        return where(DSL.and(conditions));
310    }
311
312    /**
313     * Create an inline derived table from this table
314     */
315    @Override
316    public PartyApplicationEditorUseDetails where(Field<Boolean> condition) {
317        return where(DSL.condition(condition));
318    }
319
320    /**
321     * Create an inline derived table from this table
322     */
323    @Override
324    @PlainSQL
325    public PartyApplicationEditorUseDetails where(SQL condition) {
326        return where(DSL.condition(condition));
327    }
328
329    /**
330     * Create an inline derived table from this table
331     */
332    @Override
333    @PlainSQL
334    public PartyApplicationEditorUseDetails where(@Stringly.SQL String condition) {
335        return where(DSL.condition(condition));
336    }
337
338    /**
339     * Create an inline derived table from this table
340     */
341    @Override
342    @PlainSQL
343    public PartyApplicationEditorUseDetails where(@Stringly.SQL String condition, Object... binds) {
344        return where(DSL.condition(condition, binds));
345    }
346
347    /**
348     * Create an inline derived table from this table
349     */
350    @Override
351    @PlainSQL
352    public PartyApplicationEditorUseDetails where(@Stringly.SQL String condition, QueryPart... parts) {
353        return where(DSL.condition(condition, parts));
354    }
355
356    /**
357     * Create an inline derived table from this table
358     */
359    @Override
360    public PartyApplicationEditorUseDetails whereExists(TableLike<?> select) {
361        return where(DSL.exists(select));
362    }
363
364    /**
365     * Create an inline derived table from this table
366     */
367    @Override
368    public PartyApplicationEditorUseDetails whereNotExists(TableLike<?> select) {
369        return where(DSL.notExists(select));
370    }
371}