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