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