001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.club; 005 006 007import com.echothree.model.data.accounting.common.pk.CurrencyPK; 008import com.echothree.model.data.club.common.pk.ClubDetailPK; 009import com.echothree.model.data.club.common.pk.ClubPK; 010import com.echothree.model.data.filter.common.pk.FilterPK; 011import com.echothree.model.data.subscription.common.pk.SubscriptionTypePK; 012import com.echothree.model.jooq.server.KeyRegistry; 013import com.echothree.model.jooq.server.tables.accounting.Currencies.CurrenciesPath; 014import com.echothree.model.jooq.server.tables.club.Clubs.ClubsPath; 015import com.echothree.model.jooq.server.tables.filter.Filters.FiltersPath; 016import com.echothree.model.jooq.server.tables.subscription.SubscriptionTypes.SubscriptionTypesPath; 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 ClubDetails extends TableImpl<com.echothree.model.jooq.server.records.club.ClubDetails> { 050 051 private static final long serialVersionUID = 1L; 052 053 /** 054 * The reference instance of <code>clubdetails</code> 055 */ 056 public static final ClubDetails ClubDetails = new ClubDetails(); 057 058 /** 059 * The class holding records for this type 060 */ 061 @Override 062 public Class<com.echothree.model.jooq.server.records.club.ClubDetails> getRecordType() { 063 return com.echothree.model.jooq.server.records.club.ClubDetails.class; 064 } 065 066 /** 067 * The column <code>clubdetails.clbdt_clubdetailid</code>. 068 */ 069 public final TableField<com.echothree.model.jooq.server.records.club.ClubDetails, ClubDetailPK> CLUB_DETAIL = createField(DSL.name("clbdt_clubdetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ClubDetailPK.class, id -> new com.echothree.model.data.club.common.pk.ClubDetailPK(id), primaryKey -> primaryKey.getEntityId())); 070 071 /** 072 * The column <code>clubdetails.clbdt_clb_clubid</code>. 073 */ 074 public final TableField<com.echothree.model.jooq.server.records.club.ClubDetails, ClubPK> CLUB = createField(DSL.name("clbdt_clb_clubid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ClubPK.class, id -> new com.echothree.model.data.club.common.pk.ClubPK(id), primaryKey -> primaryKey.getEntityId())); 075 076 /** 077 * The column <code>clubdetails.clbdt_clubname</code>. 078 */ 079 public final TableField<com.echothree.model.jooq.server.records.club.ClubDetails, String> CLUB_NAME = createField(DSL.name("clbdt_clubname"), SQLDataType.VARCHAR(40).nullable(false), this, ""); 080 081 /** 082 * The column <code>clubdetails.clbdt_subscrtyp_subscriptiontypeid</code>. 083 */ 084 public final TableField<com.echothree.model.jooq.server.records.club.ClubDetails, SubscriptionTypePK> SUBSCRIPTION_TYPE = createField(DSL.name("clbdt_subscrtyp_subscriptiontypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SubscriptionTypePK.class, id -> new com.echothree.model.data.subscription.common.pk.SubscriptionTypePK(id), primaryKey -> primaryKey.getEntityId())); 085 086 /** 087 * The column <code>clubdetails.clbdt_clubpricefilterid</code>. 088 */ 089 public final TableField<com.echothree.model.jooq.server.records.club.ClubDetails, FilterPK> CLUB_PRICE_FILTER = createField(DSL.name("clbdt_clubpricefilterid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, FilterPK.class, id -> new com.echothree.model.data.filter.common.pk.FilterPK(id), primaryKey -> primaryKey.getEntityId())); 090 091 /** 092 * The column <code>clubdetails.clbdt_cur_currencyid</code>. 093 */ 094 public final TableField<com.echothree.model.jooq.server.records.club.ClubDetails, CurrencyPK> CURRENCY = createField(DSL.name("clbdt_cur_currencyid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, CurrencyPK.class, id -> new com.echothree.model.data.accounting.common.pk.CurrencyPK(id), primaryKey -> primaryKey.getEntityId())); 095 096 /** 097 * The column <code>clubdetails.clbdt_isdefault</code>. 098 */ 099 public final TableField<com.echothree.model.jooq.server.records.club.ClubDetails, Boolean> IS_DEFAULT = createField(DSL.name("clbdt_isdefault"), SQLDataType.BIT.nullable(false), this, ""); 100 101 /** 102 * The column <code>clubdetails.clbdt_sortorder</code>. 103 */ 104 public final TableField<com.echothree.model.jooq.server.records.club.ClubDetails, Integer> SORT_ORDER = createField(DSL.name("clbdt_sortorder"), SQLDataType.INTEGER.nullable(false), this, ""); 105 106 /** 107 * The column <code>clubdetails.clbdt_fromtime</code>. 108 */ 109 public final TableField<com.echothree.model.jooq.server.records.club.ClubDetails, Long> FROM_TIME = createField(DSL.name("clbdt_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 110 111 /** 112 * The column <code>clubdetails.clbdt_thrutime</code>. 113 */ 114 public final TableField<com.echothree.model.jooq.server.records.club.ClubDetails, Long> THRU_TIME = createField(DSL.name("clbdt_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 115 116 private ClubDetails(Name alias, Table<com.echothree.model.jooq.server.records.club.ClubDetails> aliased) { 117 this(alias, aliased, (Field<?>[]) null, null); 118 } 119 120 private ClubDetails(Name alias, Table<com.echothree.model.jooq.server.records.club.ClubDetails> aliased, Field<?>[] parameters, Condition where) { 121 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 122 } 123 124 /** 125 * Create an aliased <code>clubdetails</code> table reference 126 */ 127 public ClubDetails(String alias) { 128 this(DSL.name(alias), ClubDetails); 129 } 130 131 /** 132 * Create an aliased <code>clubdetails</code> table reference 133 */ 134 public ClubDetails(Name alias) { 135 this(alias, ClubDetails); 136 } 137 138 /** 139 * Create a <code>clubdetails</code> table reference 140 */ 141 public ClubDetails() { 142 this(DSL.name("clubdetails"), null); 143 } 144 145 public <O extends Record> ClubDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.club.ClubDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.club.ClubDetails> parentPath) { 146 super(path, childPath, parentPath, ClubDetails); 147 } 148 149 /** 150 * A subtype implementing {@link Path} for simplified path-based joins. 151 */ 152 public static class ClubDetailsPath extends ClubDetails implements Path<com.echothree.model.jooq.server.records.club.ClubDetails> { 153 154 private static final long serialVersionUID = 1L; 155 public <O extends Record> ClubDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.club.ClubDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.club.ClubDetails> parentPath) { 156 super(path, childPath, parentPath); 157 } 158 private ClubDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.club.ClubDetails> aliased) { 159 super(alias, aliased); 160 } 161 162 @Override 163 public ClubDetailsPath as(String alias) { 164 return new ClubDetailsPath(DSL.name(alias), this); 165 } 166 167 @Override 168 public ClubDetailsPath as(Name alias) { 169 return new ClubDetailsPath(alias, this); 170 } 171 172 @Override 173 public ClubDetailsPath as(Table<?> alias) { 174 return new ClubDetailsPath(alias.getQualifiedName(), this); 175 } 176 } 177 178 @Override 179 public UniqueKey<com.echothree.model.jooq.server.records.club.ClubDetails> getPrimaryKey() { 180 return KeyRegistry.CLUB_DETAILS_PK; 181 } 182 183 @Override 184 public List<UniqueKey<com.echothree.model.jooq.server.records.club.ClubDetails>> getUniqueKeys() { 185 return Arrays.asList(KeyRegistry.CLUB_DETAILS_CLUB_AND_THRU_TIME_UK, KeyRegistry.CLUB_DETAILS_SUBSCRIPTION_TYPE_AND_THRU_TIME_UK); 186 } 187 188 @Override 189 public List<ForeignKey<com.echothree.model.jooq.server.records.club.ClubDetails, ?>> getReferences() { 190 return Arrays.asList(KeyRegistry.CLUB_DETAILS_CLUB_FK, KeyRegistry.CLUB_DETAILS_CLUB_PRICE_FILTER_FK, KeyRegistry.CLUB_DETAILS_CURRENCY_FK, KeyRegistry.CLUB_DETAILS_SUBSCRIPTION_TYPE_FK); 191 } 192 193 private transient ClubsPath _clbdt_clb_clubid_fk; 194 195 /** 196 * Get the implicit join path to the <code>clubs</code> table. 197 */ 198 public ClubsPath clbdt_clb_clubid_fk() { 199 if (_clbdt_clb_clubid_fk == null) 200 _clbdt_clb_clubid_fk = new ClubsPath(this, KeyRegistry.CLUB_DETAILS_CLUB_FK, null); 201 202 return _clbdt_clb_clubid_fk; 203 } 204 205 private transient FiltersPath _clbdt_clubpricefilterid_fk; 206 207 /** 208 * Get the implicit join path to the <code>filters</code> table. 209 */ 210 public FiltersPath clbdt_clubpricefilterid_fk() { 211 if (_clbdt_clubpricefilterid_fk == null) 212 _clbdt_clubpricefilterid_fk = new FiltersPath(this, KeyRegistry.CLUB_DETAILS_CLUB_PRICE_FILTER_FK, null); 213 214 return _clbdt_clubpricefilterid_fk; 215 } 216 217 private transient CurrenciesPath _clbdt_cur_currencyid_fk; 218 219 /** 220 * Get the implicit join path to the <code>currencies</code> table. 221 */ 222 public CurrenciesPath clbdt_cur_currencyid_fk() { 223 if (_clbdt_cur_currencyid_fk == null) 224 _clbdt_cur_currencyid_fk = new CurrenciesPath(this, KeyRegistry.CLUB_DETAILS_CURRENCY_FK, null); 225 226 return _clbdt_cur_currencyid_fk; 227 } 228 229 private transient SubscriptionTypesPath _clbdt_subscrtyp_subscriptiontypeid_fk; 230 231 /** 232 * Get the implicit join path to the <code>subscriptiontypes</code> table. 233 */ 234 public SubscriptionTypesPath clbdt_subscrtyp_subscriptiontypeid_fk() { 235 if (_clbdt_subscrtyp_subscriptiontypeid_fk == null) 236 _clbdt_subscrtyp_subscriptiontypeid_fk = new SubscriptionTypesPath(this, KeyRegistry.CLUB_DETAILS_SUBSCRIPTION_TYPE_FK, null); 237 238 return _clbdt_subscrtyp_subscriptiontypeid_fk; 239 } 240 241 @Override 242 public ClubDetails as(String alias) { 243 return new ClubDetails(DSL.name(alias), this); 244 } 245 246 @Override 247 public ClubDetails as(Name alias) { 248 return new ClubDetails(alias, this); 249 } 250 251 @Override 252 public ClubDetails as(Table<?> alias) { 253 return new ClubDetails(alias.getQualifiedName(), this); 254 } 255 256 /** 257 * Rename this table 258 */ 259 @Override 260 public ClubDetails rename(String name) { 261 return new ClubDetails(DSL.name(name), null); 262 } 263 264 /** 265 * Rename this table 266 */ 267 @Override 268 public ClubDetails rename(Name name) { 269 return new ClubDetails(name, null); 270 } 271 272 /** 273 * Rename this table 274 */ 275 @Override 276 public ClubDetails rename(Table<?> name) { 277 return new ClubDetails(name.getQualifiedName(), null); 278 } 279 280 /** 281 * Create an inline derived table from this table 282 */ 283 @Override 284 public ClubDetails where(Condition condition) { 285 return new ClubDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 286 } 287 288 /** 289 * Create an inline derived table from this table 290 */ 291 @Override 292 public ClubDetails where(Collection<? extends Condition> conditions) { 293 return where(DSL.and(conditions)); 294 } 295 296 /** 297 * Create an inline derived table from this table 298 */ 299 @Override 300 public ClubDetails where(Condition... conditions) { 301 return where(DSL.and(conditions)); 302 } 303 304 /** 305 * Create an inline derived table from this table 306 */ 307 @Override 308 public ClubDetails where(Field<Boolean> condition) { 309 return where(DSL.condition(condition)); 310 } 311 312 /** 313 * Create an inline derived table from this table 314 */ 315 @Override 316 @PlainSQL 317 public ClubDetails where(SQL condition) { 318 return where(DSL.condition(condition)); 319 } 320 321 /** 322 * Create an inline derived table from this table 323 */ 324 @Override 325 @PlainSQL 326 public ClubDetails where(@Stringly.SQL String condition) { 327 return where(DSL.condition(condition)); 328 } 329 330 /** 331 * Create an inline derived table from this table 332 */ 333 @Override 334 @PlainSQL 335 public ClubDetails where(@Stringly.SQL String condition, Object... binds) { 336 return where(DSL.condition(condition, binds)); 337 } 338 339 /** 340 * Create an inline derived table from this table 341 */ 342 @Override 343 @PlainSQL 344 public ClubDetails where(@Stringly.SQL String condition, QueryPart... parts) { 345 return where(DSL.condition(condition, parts)); 346 } 347 348 /** 349 * Create an inline derived table from this table 350 */ 351 @Override 352 public ClubDetails whereExists(TableLike<?> select) { 353 return where(DSL.exists(select)); 354 } 355 356 /** 357 * Create an inline derived table from this table 358 */ 359 @Override 360 public ClubDetails whereNotExists(TableLike<?> select) { 361 return where(DSL.notExists(select)); 362 } 363}