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.ForumMessagePartPK; 008import com.echothree.model.data.forum.common.pk.ForumStringMessagePartPK; 009import com.echothree.model.jooq.server.KeyRegistry; 010import com.echothree.model.jooq.server.tables.forum.ForumMessageParts.ForumMessagePartsPath; 011 012import java.util.Arrays; 013import java.util.Collection; 014import java.util.List; 015 016import org.jooq.Condition; 017import org.jooq.Converter; 018import org.jooq.Field; 019import org.jooq.ForeignKey; 020import org.jooq.Name; 021import org.jooq.PlainSQL; 022import org.jooq.QueryPart; 023import org.jooq.SQL; 024import org.jooq.Stringly; 025import org.jooq.Table; 026import org.jooq.TableField; 027import org.jooq.TableLike; 028import org.jooq.TableOptions; 029import org.jooq.UniqueKey; 030import org.jooq.impl.DSL; 031import org.jooq.impl.Internal; 032import org.jooq.impl.SQLDataType; 033import org.jooq.impl.TableImpl; 034 035 036/** 037 * This class is generated by jOOQ. 038 */ 039@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 040public class ForumStringMessageParts extends TableImpl<com.echothree.model.jooq.server.records.forum.ForumStringMessageParts> { 041 042 private static final long serialVersionUID = 1L; 043 044 /** 045 * The reference instance of <code>forumstringmessageparts</code> 046 */ 047 public static final ForumStringMessageParts ForumStringMessageParts = new ForumStringMessageParts(); 048 049 /** 050 * The class holding records for this type 051 */ 052 @Override 053 public Class<com.echothree.model.jooq.server.records.forum.ForumStringMessageParts> getRecordType() { 054 return com.echothree.model.jooq.server.records.forum.ForumStringMessageParts.class; 055 } 056 057 /** 058 * The column 059 * <code>forumstringmessageparts.frmsmsgprt_forumstringmessagepartid</code>. 060 */ 061 public final TableField<com.echothree.model.jooq.server.records.forum.ForumStringMessageParts, ForumStringMessagePartPK> FORUM_STRING_MESSAGE_PART = createField(DSL.name("frmsmsgprt_forumstringmessagepartid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ForumStringMessagePartPK.class, id -> new com.echothree.model.data.forum.common.pk.ForumStringMessagePartPK(id), primaryKey -> primaryKey.getEntityId())); 062 063 /** 064 * The column 065 * <code>forumstringmessageparts.frmsmsgprt_frmmsgprt_forummessagepartid</code>. 066 */ 067 public final TableField<com.echothree.model.jooq.server.records.forum.ForumStringMessageParts, ForumMessagePartPK> FORUM_MESSAGE_PART = createField(DSL.name("frmsmsgprt_frmmsgprt_forummessagepartid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ForumMessagePartPK.class, id -> new com.echothree.model.data.forum.common.pk.ForumMessagePartPK(id), primaryKey -> primaryKey.getEntityId())); 068 069 /** 070 * The column <code>forumstringmessageparts.frmsmsgprt_string</code>. 071 */ 072 public final TableField<com.echothree.model.jooq.server.records.forum.ForumStringMessageParts, String> STRING = createField(DSL.name("frmsmsgprt_string"), SQLDataType.CLOB.nullable(false), this, ""); 073 074 /** 075 * The column <code>forumstringmessageparts.frmsmsgprt_fromtime</code>. 076 */ 077 public final TableField<com.echothree.model.jooq.server.records.forum.ForumStringMessageParts, Long> FROM_TIME = createField(DSL.name("frmsmsgprt_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 078 079 /** 080 * The column <code>forumstringmessageparts.frmsmsgprt_thrutime</code>. 081 */ 082 public final TableField<com.echothree.model.jooq.server.records.forum.ForumStringMessageParts, Long> THRU_TIME = createField(DSL.name("frmsmsgprt_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 083 084 private ForumStringMessageParts(Name alias, Table<com.echothree.model.jooq.server.records.forum.ForumStringMessageParts> aliased) { 085 this(alias, aliased, (Field<?>[]) null, null); 086 } 087 088 private ForumStringMessageParts(Name alias, Table<com.echothree.model.jooq.server.records.forum.ForumStringMessageParts> aliased, Field<?>[] parameters, Condition where) { 089 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 090 } 091 092 /** 093 * Create an aliased <code>forumstringmessageparts</code> table reference 094 */ 095 public ForumStringMessageParts(String alias) { 096 this(DSL.name(alias), ForumStringMessageParts); 097 } 098 099 /** 100 * Create an aliased <code>forumstringmessageparts</code> table reference 101 */ 102 public ForumStringMessageParts(Name alias) { 103 this(alias, ForumStringMessageParts); 104 } 105 106 /** 107 * Create a <code>forumstringmessageparts</code> table reference 108 */ 109 public ForumStringMessageParts() { 110 this(DSL.name("forumstringmessageparts"), null); 111 } 112 113 @Override 114 public UniqueKey<com.echothree.model.jooq.server.records.forum.ForumStringMessageParts> getPrimaryKey() { 115 return KeyRegistry.FORUM_STRING_MESSAGE_PARTS_PK; 116 } 117 118 @Override 119 public List<UniqueKey<com.echothree.model.jooq.server.records.forum.ForumStringMessageParts>> getUniqueKeys() { 120 return Arrays.asList(KeyRegistry.FORUM_STRING_MESSAGE_PARTS_FORUM_MESSAGE_PART_AND_THRU_TIME_UK); 121 } 122 123 @Override 124 public List<ForeignKey<com.echothree.model.jooq.server.records.forum.ForumStringMessageParts, ?>> getReferences() { 125 return Arrays.asList(KeyRegistry.FORUM_STRING_MESSAGE_PARTS_FORUM_MESSAGE_PART_FK); 126 } 127 128 private transient ForumMessagePartsPath _frmsmsgprt_frmmsgprt_forummessagepartid_fk; 129 130 /** 131 * Get the implicit join path to the <code>forummessageparts</code> table. 132 */ 133 public ForumMessagePartsPath frmsmsgprt_frmmsgprt_forummessagepartid_fk() { 134 if (_frmsmsgprt_frmmsgprt_forummessagepartid_fk == null) 135 _frmsmsgprt_frmmsgprt_forummessagepartid_fk = new ForumMessagePartsPath(this, KeyRegistry.FORUM_STRING_MESSAGE_PARTS_FORUM_MESSAGE_PART_FK, null); 136 137 return _frmsmsgprt_frmmsgprt_forummessagepartid_fk; 138 } 139 140 @Override 141 public ForumStringMessageParts as(String alias) { 142 return new ForumStringMessageParts(DSL.name(alias), this); 143 } 144 145 @Override 146 public ForumStringMessageParts as(Name alias) { 147 return new ForumStringMessageParts(alias, this); 148 } 149 150 @Override 151 public ForumStringMessageParts as(Table<?> alias) { 152 return new ForumStringMessageParts(alias.getQualifiedName(), this); 153 } 154 155 /** 156 * Rename this table 157 */ 158 @Override 159 public ForumStringMessageParts rename(String name) { 160 return new ForumStringMessageParts(DSL.name(name), null); 161 } 162 163 /** 164 * Rename this table 165 */ 166 @Override 167 public ForumStringMessageParts rename(Name name) { 168 return new ForumStringMessageParts(name, null); 169 } 170 171 /** 172 * Rename this table 173 */ 174 @Override 175 public ForumStringMessageParts rename(Table<?> name) { 176 return new ForumStringMessageParts(name.getQualifiedName(), null); 177 } 178 179 /** 180 * Create an inline derived table from this table 181 */ 182 @Override 183 public ForumStringMessageParts where(Condition condition) { 184 return new ForumStringMessageParts(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 185 } 186 187 /** 188 * Create an inline derived table from this table 189 */ 190 @Override 191 public ForumStringMessageParts where(Collection<? extends Condition> conditions) { 192 return where(DSL.and(conditions)); 193 } 194 195 /** 196 * Create an inline derived table from this table 197 */ 198 @Override 199 public ForumStringMessageParts where(Condition... conditions) { 200 return where(DSL.and(conditions)); 201 } 202 203 /** 204 * Create an inline derived table from this table 205 */ 206 @Override 207 public ForumStringMessageParts where(Field<Boolean> condition) { 208 return where(DSL.condition(condition)); 209 } 210 211 /** 212 * Create an inline derived table from this table 213 */ 214 @Override 215 @PlainSQL 216 public ForumStringMessageParts where(SQL condition) { 217 return where(DSL.condition(condition)); 218 } 219 220 /** 221 * Create an inline derived table from this table 222 */ 223 @Override 224 @PlainSQL 225 public ForumStringMessageParts where(@Stringly.SQL String condition) { 226 return where(DSL.condition(condition)); 227 } 228 229 /** 230 * Create an inline derived table from this table 231 */ 232 @Override 233 @PlainSQL 234 public ForumStringMessageParts where(@Stringly.SQL String condition, Object... binds) { 235 return where(DSL.condition(condition, binds)); 236 } 237 238 /** 239 * Create an inline derived table from this table 240 */ 241 @Override 242 @PlainSQL 243 public ForumStringMessageParts where(@Stringly.SQL String condition, QueryPart... parts) { 244 return where(DSL.condition(condition, parts)); 245 } 246 247 /** 248 * Create an inline derived table from this table 249 */ 250 @Override 251 public ForumStringMessageParts whereExists(TableLike<?> select) { 252 return where(DSL.exists(select)); 253 } 254 255 /** 256 * Create an inline derived table from this table 257 */ 258 @Override 259 public ForumStringMessageParts whereNotExists(TableLike<?> select) { 260 return where(DSL.notExists(select)); 261 } 262}