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