001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.content; 005 006 007import com.echothree.model.data.content.common.pk.ContentSectionDescriptionPK; 008import com.echothree.model.data.content.common.pk.ContentSectionPK; 009import com.echothree.model.data.party.common.pk.LanguagePK; 010import com.echothree.model.jooq.server.KeyRegistry; 011import com.echothree.model.jooq.server.tables.content.ContentSections.ContentSectionsPath; 012import com.echothree.model.jooq.server.tables.party.Languages.LanguagesPath; 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 ContentSectionDescriptions extends TableImpl<com.echothree.model.jooq.server.records.content.ContentSectionDescriptions> { 043 044 private static final long serialVersionUID = 1L; 045 046 /** 047 * The reference instance of <code>contentsectiondescriptions</code> 048 */ 049 public static final ContentSectionDescriptions ContentSectionDescriptions = new ContentSectionDescriptions(); 050 051 /** 052 * The class holding records for this type 053 */ 054 @Override 055 public Class<com.echothree.model.jooq.server.records.content.ContentSectionDescriptions> getRecordType() { 056 return com.echothree.model.jooq.server.records.content.ContentSectionDescriptions.class; 057 } 058 059 /** 060 * The column 061 * <code>contentsectiondescriptions.cntsd_contentsectiondescriptionid</code>. 062 */ 063 public final TableField<com.echothree.model.jooq.server.records.content.ContentSectionDescriptions, ContentSectionDescriptionPK> CONTENT_SECTION_DESCRIPTION = createField(DSL.name("cntsd_contentsectiondescriptionid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContentSectionDescriptionPK.class, id -> new com.echothree.model.data.content.common.pk.ContentSectionDescriptionPK(id), primaryKey -> primaryKey.getEntityId())); 064 065 /** 066 * The column 067 * <code>contentsectiondescriptions.cntsd_cnts_contentsectionid</code>. 068 */ 069 public final TableField<com.echothree.model.jooq.server.records.content.ContentSectionDescriptions, ContentSectionPK> CONTENT_SECTION = createField(DSL.name("cntsd_cnts_contentsectionid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContentSectionPK.class, id -> new com.echothree.model.data.content.common.pk.ContentSectionPK(id), primaryKey -> primaryKey.getEntityId())); 070 071 /** 072 * The column <code>contentsectiondescriptions.cntsd_lang_languageid</code>. 073 */ 074 public final TableField<com.echothree.model.jooq.server.records.content.ContentSectionDescriptions, LanguagePK> LANGUAGE = createField(DSL.name("cntsd_lang_languageid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, LanguagePK.class, id -> new com.echothree.model.data.party.common.pk.LanguagePK(id), primaryKey -> primaryKey.getEntityId())); 075 076 /** 077 * The column <code>contentsectiondescriptions.cntsd_description</code>. 078 */ 079 public final TableField<com.echothree.model.jooq.server.records.content.ContentSectionDescriptions, String> DESCRIPTION = createField(DSL.name("cntsd_description"), SQLDataType.VARCHAR(132).nullable(false), this, ""); 080 081 /** 082 * The column <code>contentsectiondescriptions.cntsd_fromtime</code>. 083 */ 084 public final TableField<com.echothree.model.jooq.server.records.content.ContentSectionDescriptions, Long> FROM_TIME = createField(DSL.name("cntsd_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 085 086 /** 087 * The column <code>contentsectiondescriptions.cntsd_thrutime</code>. 088 */ 089 public final TableField<com.echothree.model.jooq.server.records.content.ContentSectionDescriptions, Long> THRU_TIME = createField(DSL.name("cntsd_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 090 091 private ContentSectionDescriptions(Name alias, Table<com.echothree.model.jooq.server.records.content.ContentSectionDescriptions> aliased) { 092 this(alias, aliased, (Field<?>[]) null, null); 093 } 094 095 private ContentSectionDescriptions(Name alias, Table<com.echothree.model.jooq.server.records.content.ContentSectionDescriptions> aliased, Field<?>[] parameters, Condition where) { 096 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 097 } 098 099 /** 100 * Create an aliased <code>contentsectiondescriptions</code> table reference 101 */ 102 public ContentSectionDescriptions(String alias) { 103 this(DSL.name(alias), ContentSectionDescriptions); 104 } 105 106 /** 107 * Create an aliased <code>contentsectiondescriptions</code> table reference 108 */ 109 public ContentSectionDescriptions(Name alias) { 110 this(alias, ContentSectionDescriptions); 111 } 112 113 /** 114 * Create a <code>contentsectiondescriptions</code> table reference 115 */ 116 public ContentSectionDescriptions() { 117 this(DSL.name("contentsectiondescriptions"), null); 118 } 119 120 @Override 121 public UniqueKey<com.echothree.model.jooq.server.records.content.ContentSectionDescriptions> getPrimaryKey() { 122 return KeyRegistry.CONTENT_SECTION_DESCRIPTIONS_PK; 123 } 124 125 @Override 126 public List<ForeignKey<com.echothree.model.jooq.server.records.content.ContentSectionDescriptions, ?>> getReferences() { 127 return Arrays.asList(KeyRegistry.CONTENT_SECTION_DESCRIPTIONS_CONTENT_SECTION_FK, KeyRegistry.CONTENT_SECTION_DESCRIPTIONS_LANGUAGE_FK); 128 } 129 130 private transient ContentSectionsPath _cntsd_cnts_contentsectionid_fk; 131 132 /** 133 * Get the implicit join path to the <code>contentsections</code> table. 134 */ 135 public ContentSectionsPath cntsd_cnts_contentsectionid_fk() { 136 if (_cntsd_cnts_contentsectionid_fk == null) 137 _cntsd_cnts_contentsectionid_fk = new ContentSectionsPath(this, KeyRegistry.CONTENT_SECTION_DESCRIPTIONS_CONTENT_SECTION_FK, null); 138 139 return _cntsd_cnts_contentsectionid_fk; 140 } 141 142 private transient LanguagesPath _cntsd_lang_languageid_fk; 143 144 /** 145 * Get the implicit join path to the <code>languages</code> table. 146 */ 147 public LanguagesPath cntsd_lang_languageid_fk() { 148 if (_cntsd_lang_languageid_fk == null) 149 _cntsd_lang_languageid_fk = new LanguagesPath(this, KeyRegistry.CONTENT_SECTION_DESCRIPTIONS_LANGUAGE_FK, null); 150 151 return _cntsd_lang_languageid_fk; 152 } 153 154 @Override 155 public ContentSectionDescriptions as(String alias) { 156 return new ContentSectionDescriptions(DSL.name(alias), this); 157 } 158 159 @Override 160 public ContentSectionDescriptions as(Name alias) { 161 return new ContentSectionDescriptions(alias, this); 162 } 163 164 @Override 165 public ContentSectionDescriptions as(Table<?> alias) { 166 return new ContentSectionDescriptions(alias.getQualifiedName(), this); 167 } 168 169 /** 170 * Rename this table 171 */ 172 @Override 173 public ContentSectionDescriptions rename(String name) { 174 return new ContentSectionDescriptions(DSL.name(name), null); 175 } 176 177 /** 178 * Rename this table 179 */ 180 @Override 181 public ContentSectionDescriptions rename(Name name) { 182 return new ContentSectionDescriptions(name, null); 183 } 184 185 /** 186 * Rename this table 187 */ 188 @Override 189 public ContentSectionDescriptions rename(Table<?> name) { 190 return new ContentSectionDescriptions(name.getQualifiedName(), null); 191 } 192 193 /** 194 * Create an inline derived table from this table 195 */ 196 @Override 197 public ContentSectionDescriptions where(Condition condition) { 198 return new ContentSectionDescriptions(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 199 } 200 201 /** 202 * Create an inline derived table from this table 203 */ 204 @Override 205 public ContentSectionDescriptions where(Collection<? extends Condition> conditions) { 206 return where(DSL.and(conditions)); 207 } 208 209 /** 210 * Create an inline derived table from this table 211 */ 212 @Override 213 public ContentSectionDescriptions where(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 ContentSectionDescriptions where(Field<Boolean> condition) { 222 return where(DSL.condition(condition)); 223 } 224 225 /** 226 * Create an inline derived table from this table 227 */ 228 @Override 229 @PlainSQL 230 public ContentSectionDescriptions where(SQL 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 ContentSectionDescriptions where(@Stringly.SQL String 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 ContentSectionDescriptions where(@Stringly.SQL String condition, Object... binds) { 249 return where(DSL.condition(condition, binds)); 250 } 251 252 /** 253 * Create an inline derived table from this table 254 */ 255 @Override 256 @PlainSQL 257 public ContentSectionDescriptions where(@Stringly.SQL String condition, QueryPart... parts) { 258 return where(DSL.condition(condition, parts)); 259 } 260 261 /** 262 * Create an inline derived table from this table 263 */ 264 @Override 265 public ContentSectionDescriptions whereExists(TableLike<?> select) { 266 return where(DSL.exists(select)); 267 } 268 269 /** 270 * Create an inline derived table from this table 271 */ 272 @Override 273 public ContentSectionDescriptions whereNotExists(TableLike<?> select) { 274 return where(DSL.notExists(select)); 275 } 276}