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