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