001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.core; 005 006 007import com.echothree.model.data.core.common.pk.AppearanceDetailPK; 008import com.echothree.model.data.core.common.pk.AppearancePK; 009import com.echothree.model.data.core.common.pk.ColorPK; 010import com.echothree.model.data.core.common.pk.FontStylePK; 011import com.echothree.model.data.core.common.pk.FontWeightPK; 012import com.echothree.model.jooq.server.KeyRegistry; 013import com.echothree.model.jooq.server.tables.core.Appearances.AppearancesPath; 014import com.echothree.model.jooq.server.tables.core.Colors.ColorsPath; 015import com.echothree.model.jooq.server.tables.core.FontStyles.FontStylesPath; 016import com.echothree.model.jooq.server.tables.core.FontWeights.FontWeightsPath; 017 018import java.util.Arrays; 019import java.util.Collection; 020import java.util.List; 021 022import org.jooq.Condition; 023import org.jooq.Converter; 024import org.jooq.Field; 025import org.jooq.ForeignKey; 026import org.jooq.InverseForeignKey; 027import org.jooq.Name; 028import org.jooq.Path; 029import org.jooq.PlainSQL; 030import org.jooq.QueryPart; 031import org.jooq.Record; 032import org.jooq.SQL; 033import org.jooq.Stringly; 034import org.jooq.Table; 035import org.jooq.TableField; 036import org.jooq.TableLike; 037import org.jooq.TableOptions; 038import org.jooq.UniqueKey; 039import org.jooq.impl.DSL; 040import org.jooq.impl.Internal; 041import org.jooq.impl.SQLDataType; 042import org.jooq.impl.TableImpl; 043 044 045/** 046 * This class is generated by jOOQ. 047 */ 048@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 049public class AppearanceDetails extends TableImpl<com.echothree.model.jooq.server.records.core.AppearanceDetails> { 050 051 private static final long serialVersionUID = 1L; 052 053 /** 054 * The reference instance of <code>appearancedetails</code> 055 */ 056 public static final AppearanceDetails AppearanceDetails = new AppearanceDetails(); 057 058 /** 059 * The class holding records for this type 060 */ 061 @Override 062 public Class<com.echothree.model.jooq.server.records.core.AppearanceDetails> getRecordType() { 063 return com.echothree.model.jooq.server.records.core.AppearanceDetails.class; 064 } 065 066 /** 067 * The column <code>appearancedetails.apprncdt_appearancedetailid</code>. 068 */ 069 public final TableField<com.echothree.model.jooq.server.records.core.AppearanceDetails, AppearanceDetailPK> APPEARANCE_DETAIL = createField(DSL.name("apprncdt_appearancedetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, AppearanceDetailPK.class, id -> new com.echothree.model.data.core.common.pk.AppearanceDetailPK(id), primaryKey -> primaryKey.getEntityId())); 070 071 /** 072 * The column <code>appearancedetails.apprncdt_apprnc_appearanceid</code>. 073 */ 074 public final TableField<com.echothree.model.jooq.server.records.core.AppearanceDetails, AppearancePK> APPEARANCE = createField(DSL.name("apprncdt_apprnc_appearanceid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, AppearancePK.class, id -> new com.echothree.model.data.core.common.pk.AppearancePK(id), primaryKey -> primaryKey.getEntityId())); 075 076 /** 077 * The column <code>appearancedetails.apprncdt_appearancename</code>. 078 */ 079 public final TableField<com.echothree.model.jooq.server.records.core.AppearanceDetails, String> APPEARANCE_NAME = createField(DSL.name("apprncdt_appearancename"), SQLDataType.VARCHAR(40).nullable(false), this, ""); 080 081 /** 082 * The column <code>appearancedetails.apprncdt_textcolorid</code>. 083 */ 084 public final TableField<com.echothree.model.jooq.server.records.core.AppearanceDetails, ColorPK> TEXT_COLOR = createField(DSL.name("apprncdt_textcolorid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, ColorPK.class, id -> new com.echothree.model.data.core.common.pk.ColorPK(id), primaryKey -> primaryKey.getEntityId())); 085 086 /** 087 * The column <code>appearancedetails.apprncdt_backgroundcolorid</code>. 088 */ 089 public final TableField<com.echothree.model.jooq.server.records.core.AppearanceDetails, ColorPK> BACKGROUND_COLOR = createField(DSL.name("apprncdt_backgroundcolorid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, ColorPK.class, id -> new com.echothree.model.data.core.common.pk.ColorPK(id), primaryKey -> primaryKey.getEntityId())); 090 091 /** 092 * The column <code>appearancedetails.apprncdt_fntstyl_fontstyleid</code>. 093 */ 094 public final TableField<com.echothree.model.jooq.server.records.core.AppearanceDetails, FontStylePK> FONT_STYLE = createField(DSL.name("apprncdt_fntstyl_fontstyleid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, FontStylePK.class, id -> new com.echothree.model.data.core.common.pk.FontStylePK(id), primaryKey -> primaryKey.getEntityId())); 095 096 /** 097 * The column <code>appearancedetails.apprncdt_fntwght_fontweightid</code>. 098 */ 099 public final TableField<com.echothree.model.jooq.server.records.core.AppearanceDetails, FontWeightPK> FONT_WEIGHT = createField(DSL.name("apprncdt_fntwght_fontweightid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, FontWeightPK.class, id -> new com.echothree.model.data.core.common.pk.FontWeightPK(id), primaryKey -> primaryKey.getEntityId())); 100 101 /** 102 * The column <code>appearancedetails.apprncdt_isdefault</code>. 103 */ 104 public final TableField<com.echothree.model.jooq.server.records.core.AppearanceDetails, Boolean> IS_DEFAULT = createField(DSL.name("apprncdt_isdefault"), SQLDataType.BIT.nullable(false), this, ""); 105 106 /** 107 * The column <code>appearancedetails.apprncdt_sortorder</code>. 108 */ 109 public final TableField<com.echothree.model.jooq.server.records.core.AppearanceDetails, Integer> SORT_ORDER = createField(DSL.name("apprncdt_sortorder"), SQLDataType.INTEGER.nullable(false), this, ""); 110 111 /** 112 * The column <code>appearancedetails.apprncdt_fromtime</code>. 113 */ 114 public final TableField<com.echothree.model.jooq.server.records.core.AppearanceDetails, Long> FROM_TIME = createField(DSL.name("apprncdt_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 115 116 /** 117 * The column <code>appearancedetails.apprncdt_thrutime</code>. 118 */ 119 public final TableField<com.echothree.model.jooq.server.records.core.AppearanceDetails, Long> THRU_TIME = createField(DSL.name("apprncdt_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 120 121 private AppearanceDetails(Name alias, Table<com.echothree.model.jooq.server.records.core.AppearanceDetails> aliased) { 122 this(alias, aliased, (Field<?>[]) null, null); 123 } 124 125 private AppearanceDetails(Name alias, Table<com.echothree.model.jooq.server.records.core.AppearanceDetails> aliased, Field<?>[] parameters, Condition where) { 126 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 127 } 128 129 /** 130 * Create an aliased <code>appearancedetails</code> table reference 131 */ 132 public AppearanceDetails(String alias) { 133 this(DSL.name(alias), AppearanceDetails); 134 } 135 136 /** 137 * Create an aliased <code>appearancedetails</code> table reference 138 */ 139 public AppearanceDetails(Name alias) { 140 this(alias, AppearanceDetails); 141 } 142 143 /** 144 * Create a <code>appearancedetails</code> table reference 145 */ 146 public AppearanceDetails() { 147 this(DSL.name("appearancedetails"), null); 148 } 149 150 public <O extends Record> AppearanceDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.core.AppearanceDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.core.AppearanceDetails> parentPath) { 151 super(path, childPath, parentPath, AppearanceDetails); 152 } 153 154 /** 155 * A subtype implementing {@link Path} for simplified path-based joins. 156 */ 157 public static class AppearanceDetailsPath extends AppearanceDetails implements Path<com.echothree.model.jooq.server.records.core.AppearanceDetails> { 158 159 private static final long serialVersionUID = 1L; 160 public <O extends Record> AppearanceDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.core.AppearanceDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.core.AppearanceDetails> parentPath) { 161 super(path, childPath, parentPath); 162 } 163 private AppearanceDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.core.AppearanceDetails> aliased) { 164 super(alias, aliased); 165 } 166 167 @Override 168 public AppearanceDetailsPath as(String alias) { 169 return new AppearanceDetailsPath(DSL.name(alias), this); 170 } 171 172 @Override 173 public AppearanceDetailsPath as(Name alias) { 174 return new AppearanceDetailsPath(alias, this); 175 } 176 177 @Override 178 public AppearanceDetailsPath as(Table<?> alias) { 179 return new AppearanceDetailsPath(alias.getQualifiedName(), this); 180 } 181 } 182 183 @Override 184 public UniqueKey<com.echothree.model.jooq.server.records.core.AppearanceDetails> getPrimaryKey() { 185 return KeyRegistry.APPEARANCE_DETAILS_PK; 186 } 187 188 @Override 189 public List<UniqueKey<com.echothree.model.jooq.server.records.core.AppearanceDetails>> getUniqueKeys() { 190 return Arrays.asList(KeyRegistry.APPEARANCE_DETAILS_APPEARANCE_AND_THRU_TIME_UK, KeyRegistry.APPEARANCE_DETAILS_APPEARANCE_NAME_AND_THRU_TIME_UK); 191 } 192 193 @Override 194 public List<ForeignKey<com.echothree.model.jooq.server.records.core.AppearanceDetails, ?>> getReferences() { 195 return Arrays.asList(KeyRegistry.APPEARANCE_DETAILS_APPEARANCE_FK, KeyRegistry.APPEARANCE_DETAILS_BACKGROUND_COLOR_FK, KeyRegistry.APPEARANCE_DETAILS_FONT_STYLE_FK, KeyRegistry.APPEARANCE_DETAILS_FONT_WEIGHT_FK, KeyRegistry.APPEARANCE_DETAILS_TEXT_COLOR_FK); 196 } 197 198 private transient AppearancesPath _apprncdt_apprnc_appearanceid_fk; 199 200 /** 201 * Get the implicit join path to the <code>appearances</code> table. 202 */ 203 public AppearancesPath apprncdt_apprnc_appearanceid_fk() { 204 if (_apprncdt_apprnc_appearanceid_fk == null) 205 _apprncdt_apprnc_appearanceid_fk = new AppearancesPath(this, KeyRegistry.APPEARANCE_DETAILS_APPEARANCE_FK, null); 206 207 return _apprncdt_apprnc_appearanceid_fk; 208 } 209 210 private transient ColorsPath _apprncdt_backgroundcolorid_fk; 211 212 /** 213 * Get the implicit join path to the <code>colors</code> table, via the 214 * <code>apprncdt_backgroundcolorid_fk</code> key. 215 */ 216 public ColorsPath apprncdt_backgroundcolorid_fk() { 217 if (_apprncdt_backgroundcolorid_fk == null) 218 _apprncdt_backgroundcolorid_fk = new ColorsPath(this, KeyRegistry.APPEARANCE_DETAILS_BACKGROUND_COLOR_FK, null); 219 220 return _apprncdt_backgroundcolorid_fk; 221 } 222 223 private transient FontStylesPath _apprncdt_fntstyl_fontstyleid_fk; 224 225 /** 226 * Get the implicit join path to the <code>fontstyles</code> table. 227 */ 228 public FontStylesPath apprncdt_fntstyl_fontstyleid_fk() { 229 if (_apprncdt_fntstyl_fontstyleid_fk == null) 230 _apprncdt_fntstyl_fontstyleid_fk = new FontStylesPath(this, KeyRegistry.APPEARANCE_DETAILS_FONT_STYLE_FK, null); 231 232 return _apprncdt_fntstyl_fontstyleid_fk; 233 } 234 235 private transient FontWeightsPath _apprncdt_fntwght_fontweightid_fk; 236 237 /** 238 * Get the implicit join path to the <code>fontweights</code> table. 239 */ 240 public FontWeightsPath apprncdt_fntwght_fontweightid_fk() { 241 if (_apprncdt_fntwght_fontweightid_fk == null) 242 _apprncdt_fntwght_fontweightid_fk = new FontWeightsPath(this, KeyRegistry.APPEARANCE_DETAILS_FONT_WEIGHT_FK, null); 243 244 return _apprncdt_fntwght_fontweightid_fk; 245 } 246 247 private transient ColorsPath _apprncdt_textcolorid_fk; 248 249 /** 250 * Get the implicit join path to the <code>colors</code> table, via the 251 * <code>apprncdt_textcolorid_fk</code> key. 252 */ 253 public ColorsPath apprncdt_textcolorid_fk() { 254 if (_apprncdt_textcolorid_fk == null) 255 _apprncdt_textcolorid_fk = new ColorsPath(this, KeyRegistry.APPEARANCE_DETAILS_TEXT_COLOR_FK, null); 256 257 return _apprncdt_textcolorid_fk; 258 } 259 260 @Override 261 public AppearanceDetails as(String alias) { 262 return new AppearanceDetails(DSL.name(alias), this); 263 } 264 265 @Override 266 public AppearanceDetails as(Name alias) { 267 return new AppearanceDetails(alias, this); 268 } 269 270 @Override 271 public AppearanceDetails as(Table<?> alias) { 272 return new AppearanceDetails(alias.getQualifiedName(), this); 273 } 274 275 /** 276 * Rename this table 277 */ 278 @Override 279 public AppearanceDetails rename(String name) { 280 return new AppearanceDetails(DSL.name(name), null); 281 } 282 283 /** 284 * Rename this table 285 */ 286 @Override 287 public AppearanceDetails rename(Name name) { 288 return new AppearanceDetails(name, null); 289 } 290 291 /** 292 * Rename this table 293 */ 294 @Override 295 public AppearanceDetails rename(Table<?> name) { 296 return new AppearanceDetails(name.getQualifiedName(), null); 297 } 298 299 /** 300 * Create an inline derived table from this table 301 */ 302 @Override 303 public AppearanceDetails where(Condition condition) { 304 return new AppearanceDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 305 } 306 307 /** 308 * Create an inline derived table from this table 309 */ 310 @Override 311 public AppearanceDetails where(Collection<? extends Condition> conditions) { 312 return where(DSL.and(conditions)); 313 } 314 315 /** 316 * Create an inline derived table from this table 317 */ 318 @Override 319 public AppearanceDetails where(Condition... conditions) { 320 return where(DSL.and(conditions)); 321 } 322 323 /** 324 * Create an inline derived table from this table 325 */ 326 @Override 327 public AppearanceDetails where(Field<Boolean> condition) { 328 return where(DSL.condition(condition)); 329 } 330 331 /** 332 * Create an inline derived table from this table 333 */ 334 @Override 335 @PlainSQL 336 public AppearanceDetails where(SQL condition) { 337 return where(DSL.condition(condition)); 338 } 339 340 /** 341 * Create an inline derived table from this table 342 */ 343 @Override 344 @PlainSQL 345 public AppearanceDetails where(@Stringly.SQL String condition) { 346 return where(DSL.condition(condition)); 347 } 348 349 /** 350 * Create an inline derived table from this table 351 */ 352 @Override 353 @PlainSQL 354 public AppearanceDetails where(@Stringly.SQL String condition, Object... binds) { 355 return where(DSL.condition(condition, binds)); 356 } 357 358 /** 359 * Create an inline derived table from this table 360 */ 361 @Override 362 @PlainSQL 363 public AppearanceDetails where(@Stringly.SQL String condition, QueryPart... parts) { 364 return where(DSL.condition(condition, parts)); 365 } 366 367 /** 368 * Create an inline derived table from this table 369 */ 370 @Override 371 public AppearanceDetails whereExists(TableLike<?> select) { 372 return where(DSL.exists(select)); 373 } 374 375 /** 376 * Create an inline derived table from this table 377 */ 378 @Override 379 public AppearanceDetails whereNotExists(TableLike<?> select) { 380 return where(DSL.notExists(select)); 381 } 382}