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.ContentPageAreaTypePK; 008import com.echothree.model.data.content.common.pk.ContentPageLayoutAreaPK; 009import com.echothree.model.data.content.common.pk.ContentPageLayoutPK; 010import com.echothree.model.jooq.server.KeyRegistry; 011import com.echothree.model.jooq.server.tables.content.ContentPageAreaTypes.ContentPageAreaTypesPath; 012import com.echothree.model.jooq.server.tables.content.ContentPageLayouts.ContentPageLayoutsPath; 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.InverseForeignKey; 023import org.jooq.Name; 024import org.jooq.Path; 025import org.jooq.PlainSQL; 026import org.jooq.QueryPart; 027import org.jooq.Record; 028import org.jooq.SQL; 029import org.jooq.Stringly; 030import org.jooq.Table; 031import org.jooq.TableField; 032import org.jooq.TableLike; 033import org.jooq.TableOptions; 034import org.jooq.UniqueKey; 035import org.jooq.impl.DSL; 036import org.jooq.impl.Internal; 037import org.jooq.impl.SQLDataType; 038import org.jooq.impl.TableImpl; 039 040 041/** 042 * This class is generated by jOOQ. 043 */ 044@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 045public class ContentPageLayoutAreas extends TableImpl<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas> { 046 047 private static final long serialVersionUID = 1L; 048 049 /** 050 * The reference instance of <code>contentpagelayoutareas</code> 051 */ 052 public static final ContentPageLayoutAreas ContentPageLayoutAreas = new ContentPageLayoutAreas(); 053 054 /** 055 * The class holding records for this type 056 */ 057 @Override 058 public Class<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas> getRecordType() { 059 return com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas.class; 060 } 061 062 /** 063 * The column 064 * <code>contentpagelayoutareas.cntpla_contentpagelayoutareaid</code>. 065 */ 066 public final TableField<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas, ContentPageLayoutAreaPK> CONTENT_PAGE_LAYOUT_AREA = createField(DSL.name("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())); 067 068 /** 069 * The column 070 * <code>contentpagelayoutareas.cntpla_cntpl_contentpagelayoutid</code>. 071 */ 072 public final TableField<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas, ContentPageLayoutPK> CONTENT_PAGE_LAYOUT = createField(DSL.name("cntpla_cntpl_contentpagelayoutid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContentPageLayoutPK.class, id -> new com.echothree.model.data.content.common.pk.ContentPageLayoutPK(id), primaryKey -> primaryKey.getEntityId())); 073 074 /** 075 * The column 076 * <code>contentpagelayoutareas.cntpla_cntpat_contentpageareatypeid</code>. 077 */ 078 public final TableField<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas, ContentPageAreaTypePK> CONTENT_PAGE_AREA_TYPE = createField(DSL.name("cntpla_cntpat_contentpageareatypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContentPageAreaTypePK.class, id -> new com.echothree.model.data.content.common.pk.ContentPageAreaTypePK(id), primaryKey -> primaryKey.getEntityId())); 079 080 /** 081 * The column 082 * <code>contentpagelayoutareas.cntpla_showdescriptionfield</code>. 083 */ 084 public final TableField<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas, Boolean> SHOW_DESCRIPTION_FIELD = createField(DSL.name("cntpla_showdescriptionfield"), SQLDataType.BIT.nullable(false), this, ""); 085 086 /** 087 * The column <code>contentpagelayoutareas.cntpla_sortorder</code>. 088 */ 089 public final TableField<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas, Integer> SORT_ORDER = createField(DSL.name("cntpla_sortorder"), SQLDataType.INTEGER.nullable(false), this, ""); 090 091 private ContentPageLayoutAreas(Name alias, Table<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas> aliased) { 092 this(alias, aliased, (Field<?>[]) null, null); 093 } 094 095 private ContentPageLayoutAreas(Name alias, Table<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas> aliased, Field<?>[] parameters, Condition where) { 096 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 097 } 098 099 /** 100 * Create an aliased <code>contentpagelayoutareas</code> table reference 101 */ 102 public ContentPageLayoutAreas(String alias) { 103 this(DSL.name(alias), ContentPageLayoutAreas); 104 } 105 106 /** 107 * Create an aliased <code>contentpagelayoutareas</code> table reference 108 */ 109 public ContentPageLayoutAreas(Name alias) { 110 this(alias, ContentPageLayoutAreas); 111 } 112 113 /** 114 * Create a <code>contentpagelayoutareas</code> table reference 115 */ 116 public ContentPageLayoutAreas() { 117 this(DSL.name("contentpagelayoutareas"), null); 118 } 119 120 public <O extends Record> ContentPageLayoutAreas(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas> parentPath) { 121 super(path, childPath, parentPath, ContentPageLayoutAreas); 122 } 123 124 /** 125 * A subtype implementing {@link Path} for simplified path-based joins. 126 */ 127 public static class ContentPageLayoutAreasPath extends ContentPageLayoutAreas implements Path<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas> { 128 129 private static final long serialVersionUID = 1L; 130 public <O extends Record> ContentPageLayoutAreasPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas> parentPath) { 131 super(path, childPath, parentPath); 132 } 133 private ContentPageLayoutAreasPath(Name alias, Table<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas> aliased) { 134 super(alias, aliased); 135 } 136 137 @Override 138 public ContentPageLayoutAreasPath as(String alias) { 139 return new ContentPageLayoutAreasPath(DSL.name(alias), this); 140 } 141 142 @Override 143 public ContentPageLayoutAreasPath as(Name alias) { 144 return new ContentPageLayoutAreasPath(alias, this); 145 } 146 147 @Override 148 public ContentPageLayoutAreasPath as(Table<?> alias) { 149 return new ContentPageLayoutAreasPath(alias.getQualifiedName(), this); 150 } 151 } 152 153 @Override 154 public UniqueKey<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas> getPrimaryKey() { 155 return KeyRegistry.CONTENT_PAGE_LAYOUT_AREAS_PK; 156 } 157 158 @Override 159 public List<UniqueKey<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas>> getUniqueKeys() { 160 return Arrays.asList(KeyRegistry.CONTENT_PAGE_LAYOUT_AREAS_CONTENT_PAGE_LAYOUT_AND_SORT_ORDER_UK); 161 } 162 163 @Override 164 public List<ForeignKey<com.echothree.model.jooq.server.records.content.ContentPageLayoutAreas, ?>> getReferences() { 165 return Arrays.asList(KeyRegistry.CONTENT_PAGE_LAYOUT_AREAS_CONTENT_PAGE_AREA_TYPE_FK, KeyRegistry.CONTENT_PAGE_LAYOUT_AREAS_CONTENT_PAGE_LAYOUT_FK); 166 } 167 168 private transient ContentPageAreaTypesPath _cntpla_cntpat_contentpageareatypeid_fk; 169 170 /** 171 * Get the implicit join path to the <code>contentpageareatypes</code> 172 * table. 173 */ 174 public ContentPageAreaTypesPath cntpla_cntpat_contentpageareatypeid_fk() { 175 if (_cntpla_cntpat_contentpageareatypeid_fk == null) 176 _cntpla_cntpat_contentpageareatypeid_fk = new ContentPageAreaTypesPath(this, KeyRegistry.CONTENT_PAGE_LAYOUT_AREAS_CONTENT_PAGE_AREA_TYPE_FK, null); 177 178 return _cntpla_cntpat_contentpageareatypeid_fk; 179 } 180 181 private transient ContentPageLayoutsPath _cntpla_cntpl_contentpagelayoutid_fk; 182 183 /** 184 * Get the implicit join path to the <code>contentpagelayouts</code> table. 185 */ 186 public ContentPageLayoutsPath cntpla_cntpl_contentpagelayoutid_fk() { 187 if (_cntpla_cntpl_contentpagelayoutid_fk == null) 188 _cntpla_cntpl_contentpagelayoutid_fk = new ContentPageLayoutsPath(this, KeyRegistry.CONTENT_PAGE_LAYOUT_AREAS_CONTENT_PAGE_LAYOUT_FK, null); 189 190 return _cntpla_cntpl_contentpagelayoutid_fk; 191 } 192 193 @Override 194 public ContentPageLayoutAreas as(String alias) { 195 return new ContentPageLayoutAreas(DSL.name(alias), this); 196 } 197 198 @Override 199 public ContentPageLayoutAreas as(Name alias) { 200 return new ContentPageLayoutAreas(alias, this); 201 } 202 203 @Override 204 public ContentPageLayoutAreas as(Table<?> alias) { 205 return new ContentPageLayoutAreas(alias.getQualifiedName(), this); 206 } 207 208 /** 209 * Rename this table 210 */ 211 @Override 212 public ContentPageLayoutAreas rename(String name) { 213 return new ContentPageLayoutAreas(DSL.name(name), null); 214 } 215 216 /** 217 * Rename this table 218 */ 219 @Override 220 public ContentPageLayoutAreas rename(Name name) { 221 return new ContentPageLayoutAreas(name, null); 222 } 223 224 /** 225 * Rename this table 226 */ 227 @Override 228 public ContentPageLayoutAreas rename(Table<?> name) { 229 return new ContentPageLayoutAreas(name.getQualifiedName(), null); 230 } 231 232 /** 233 * Create an inline derived table from this table 234 */ 235 @Override 236 public ContentPageLayoutAreas where(Condition condition) { 237 return new ContentPageLayoutAreas(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 238 } 239 240 /** 241 * Create an inline derived table from this table 242 */ 243 @Override 244 public ContentPageLayoutAreas where(Collection<? extends Condition> conditions) { 245 return where(DSL.and(conditions)); 246 } 247 248 /** 249 * Create an inline derived table from this table 250 */ 251 @Override 252 public ContentPageLayoutAreas where(Condition... conditions) { 253 return where(DSL.and(conditions)); 254 } 255 256 /** 257 * Create an inline derived table from this table 258 */ 259 @Override 260 public ContentPageLayoutAreas where(Field<Boolean> condition) { 261 return where(DSL.condition(condition)); 262 } 263 264 /** 265 * Create an inline derived table from this table 266 */ 267 @Override 268 @PlainSQL 269 public ContentPageLayoutAreas where(SQL condition) { 270 return where(DSL.condition(condition)); 271 } 272 273 /** 274 * Create an inline derived table from this table 275 */ 276 @Override 277 @PlainSQL 278 public ContentPageLayoutAreas where(@Stringly.SQL String condition) { 279 return where(DSL.condition(condition)); 280 } 281 282 /** 283 * Create an inline derived table from this table 284 */ 285 @Override 286 @PlainSQL 287 public ContentPageLayoutAreas where(@Stringly.SQL String condition, Object... binds) { 288 return where(DSL.condition(condition, binds)); 289 } 290 291 /** 292 * Create an inline derived table from this table 293 */ 294 @Override 295 @PlainSQL 296 public ContentPageLayoutAreas where(@Stringly.SQL String condition, QueryPart... parts) { 297 return where(DSL.condition(condition, parts)); 298 } 299 300 /** 301 * Create an inline derived table from this table 302 */ 303 @Override 304 public ContentPageLayoutAreas whereExists(TableLike<?> select) { 305 return where(DSL.exists(select)); 306 } 307 308 /** 309 * Create an inline derived table from this table 310 */ 311 @Override 312 public ContentPageLayoutAreas whereNotExists(TableLike<?> select) { 313 return where(DSL.notExists(select)); 314 } 315}