001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.item; 005 006 007import com.echothree.model.data.accounting.common.pk.CurrencyPK; 008import com.echothree.model.data.item.common.pk.ItemAdditionalChargePK; 009import com.echothree.model.data.item.common.pk.ItemAdditionalChargeTypePK; 010import com.echothree.model.data.item.common.pk.ItemPK; 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.item.ItemAdditionalChargeTypes.ItemAdditionalChargeTypesPath; 015import com.echothree.model.jooq.server.tables.item.Items.ItemsPath; 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.Name; 027import org.jooq.PlainSQL; 028import org.jooq.QueryPart; 029import org.jooq.SQL; 030import org.jooq.Stringly; 031import org.jooq.Table; 032import org.jooq.TableField; 033import org.jooq.TableLike; 034import org.jooq.TableOptions; 035import org.jooq.UniqueKey; 036import org.jooq.impl.DSL; 037import org.jooq.impl.Internal; 038import org.jooq.impl.SQLDataType; 039import org.jooq.impl.TableImpl; 040 041 042/** 043 * This class is generated by jOOQ. 044 */ 045@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 046public class ItemAdditionalCharges extends TableImpl<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges> { 047 048 private static final long serialVersionUID = 1L; 049 050 /** 051 * The reference instance of <code>itemadditionalcharges</code> 052 */ 053 public static final ItemAdditionalCharges ItemAdditionalCharges = new ItemAdditionalCharges(); 054 055 /** 056 * The class holding records for this type 057 */ 058 @Override 059 public Class<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges> getRecordType() { 060 return com.echothree.model.jooq.server.records.item.ItemAdditionalCharges.class; 061 } 062 063 /** 064 * The column 065 * <code>itemadditionalcharges.itmaddtlc_itemadditionalchargeid</code>. 066 */ 067 public final TableField<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges, ItemAdditionalChargePK> ITEM_ADDITIONAL_CHARGE = createField(DSL.name("itmaddtlc_itemadditionalchargeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ItemAdditionalChargePK.class, id -> new com.echothree.model.data.item.common.pk.ItemAdditionalChargePK(id), primaryKey -> primaryKey.getEntityId())); 068 069 /** 070 * The column <code>itemadditionalcharges.itmaddtlc_itm_itemid</code>. 071 */ 072 public final TableField<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges, ItemPK> ITEM = createField(DSL.name("itmaddtlc_itm_itemid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ItemPK.class, id -> new com.echothree.model.data.item.common.pk.ItemPK(id), primaryKey -> primaryKey.getEntityId())); 073 074 /** 075 * The column 076 * <code>itemadditionalcharges.itmaddtlc_itmaddtlct_itemadditionalchargetypeid</code>. 077 */ 078 public final TableField<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges, ItemAdditionalChargeTypePK> ITEM_ADDITIONAL_CHARGE_TYPE = createField(DSL.name("itmaddtlc_itmaddtlct_itemadditionalchargetypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ItemAdditionalChargeTypePK.class, id -> new com.echothree.model.data.item.common.pk.ItemAdditionalChargeTypePK(id), primaryKey -> primaryKey.getEntityId())); 079 080 /** 081 * The column 082 * <code>itemadditionalcharges.itmaddtlc_uomt_unitofmeasuretypeid</code>. 083 */ 084 public final TableField<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges, UnitOfMeasureTypePK> UNIT_OF_MEASURE_TYPE = createField(DSL.name("itmaddtlc_uomt_unitofmeasuretypeid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, UnitOfMeasureTypePK.class, id -> new com.echothree.model.data.uom.common.pk.UnitOfMeasureTypePK(id), primaryKey -> primaryKey.getEntityId())); 085 086 /** 087 * The column <code>itemadditionalcharges.itmaddtlc_minimumquantity</code>. 088 */ 089 public final TableField<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges, Long> MINIMUM_QUANTITY = createField(DSL.name("itmaddtlc_minimumquantity"), SQLDataType.BIGINT, this, ""); 090 091 /** 092 * The column <code>itemadditionalcharges.itmaddtlc_maximumquantity</code>. 093 */ 094 public final TableField<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges, Long> MAXIMUM_QUANTITY = createField(DSL.name("itmaddtlc_maximumquantity"), SQLDataType.BIGINT, this, ""); 095 096 /** 097 * The column <code>itemadditionalcharges.itmaddtlc_cur_currencyid</code>. 098 */ 099 public final TableField<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges, CurrencyPK> CURRENCY = createField(DSL.name("itmaddtlc_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())); 100 101 /** 102 * The column <code>itemadditionalcharges.itmaddtlc_unitprice</code>. 103 */ 104 public final TableField<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges, Long> UNIT_PRICE = createField(DSL.name("itmaddtlc_unitprice"), SQLDataType.BIGINT.nullable(false), this, ""); 105 106 /** 107 * The column <code>itemadditionalcharges.itmaddtlc_fromtime</code>. 108 */ 109 public final TableField<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges, Long> FROM_TIME = createField(DSL.name("itmaddtlc_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 110 111 /** 112 * The column <code>itemadditionalcharges.itmaddtlc_thrutime</code>. 113 */ 114 public final TableField<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges, Long> THRU_TIME = createField(DSL.name("itmaddtlc_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 115 116 private ItemAdditionalCharges(Name alias, Table<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges> aliased) { 117 this(alias, aliased, (Field<?>[]) null, null); 118 } 119 120 private ItemAdditionalCharges(Name alias, Table<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges> aliased, Field<?>[] parameters, Condition where) { 121 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 122 } 123 124 /** 125 * Create an aliased <code>itemadditionalcharges</code> table reference 126 */ 127 public ItemAdditionalCharges(String alias) { 128 this(DSL.name(alias), ItemAdditionalCharges); 129 } 130 131 /** 132 * Create an aliased <code>itemadditionalcharges</code> table reference 133 */ 134 public ItemAdditionalCharges(Name alias) { 135 this(alias, ItemAdditionalCharges); 136 } 137 138 /** 139 * Create a <code>itemadditionalcharges</code> table reference 140 */ 141 public ItemAdditionalCharges() { 142 this(DSL.name("itemadditionalcharges"), null); 143 } 144 145 @Override 146 public UniqueKey<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges> getPrimaryKey() { 147 return KeyRegistry.ITEM_ADDITIONAL_CHARGES_PK; 148 } 149 150 @Override 151 public List<ForeignKey<com.echothree.model.jooq.server.records.item.ItemAdditionalCharges, ?>> getReferences() { 152 return Arrays.asList(KeyRegistry.ITEM_ADDITIONAL_CHARGES_CURRENCY_FK, KeyRegistry.ITEM_ADDITIONAL_CHARGES_ITEM_FK, KeyRegistry.ITEM_ADDITIONAL_CHARGES_ITEM_ADDITIONAL_CHARGE_TYPE_FK, KeyRegistry.ITEM_ADDITIONAL_CHARGES_UNIT_OF_MEASURE_TYPE_FK); 153 } 154 155 private transient CurrenciesPath _itmaddtlc_cur_currencyid_fk; 156 157 /** 158 * Get the implicit join path to the <code>currencies</code> table. 159 */ 160 public CurrenciesPath itmaddtlc_cur_currencyid_fk() { 161 if (_itmaddtlc_cur_currencyid_fk == null) 162 _itmaddtlc_cur_currencyid_fk = new CurrenciesPath(this, KeyRegistry.ITEM_ADDITIONAL_CHARGES_CURRENCY_FK, null); 163 164 return _itmaddtlc_cur_currencyid_fk; 165 } 166 167 private transient ItemsPath _itmaddtlc_itm_itemid_fk; 168 169 /** 170 * Get the implicit join path to the <code>items</code> table. 171 */ 172 public ItemsPath itmaddtlc_itm_itemid_fk() { 173 if (_itmaddtlc_itm_itemid_fk == null) 174 _itmaddtlc_itm_itemid_fk = new ItemsPath(this, KeyRegistry.ITEM_ADDITIONAL_CHARGES_ITEM_FK, null); 175 176 return _itmaddtlc_itm_itemid_fk; 177 } 178 179 private transient ItemAdditionalChargeTypesPath _itmaddtlc_itmaddtlct_itemadditionalchargetypeid_fk; 180 181 /** 182 * Get the implicit join path to the <code>itemadditionalchargetypes</code> 183 * table. 184 */ 185 public ItemAdditionalChargeTypesPath itmaddtlc_itmaddtlct_itemadditionalchargetypeid_fk() { 186 if (_itmaddtlc_itmaddtlct_itemadditionalchargetypeid_fk == null) 187 _itmaddtlc_itmaddtlct_itemadditionalchargetypeid_fk = new ItemAdditionalChargeTypesPath(this, KeyRegistry.ITEM_ADDITIONAL_CHARGES_ITEM_ADDITIONAL_CHARGE_TYPE_FK, null); 188 189 return _itmaddtlc_itmaddtlct_itemadditionalchargetypeid_fk; 190 } 191 192 private transient UnitOfMeasureTypesPath _itmaddtlc_uomt_unitofmeasuretypeid_fk; 193 194 /** 195 * Get the implicit join path to the <code>unitofmeasuretypes</code> table. 196 */ 197 public UnitOfMeasureTypesPath itmaddtlc_uomt_unitofmeasuretypeid_fk() { 198 if (_itmaddtlc_uomt_unitofmeasuretypeid_fk == null) 199 _itmaddtlc_uomt_unitofmeasuretypeid_fk = new UnitOfMeasureTypesPath(this, KeyRegistry.ITEM_ADDITIONAL_CHARGES_UNIT_OF_MEASURE_TYPE_FK, null); 200 201 return _itmaddtlc_uomt_unitofmeasuretypeid_fk; 202 } 203 204 @Override 205 public ItemAdditionalCharges as(String alias) { 206 return new ItemAdditionalCharges(DSL.name(alias), this); 207 } 208 209 @Override 210 public ItemAdditionalCharges as(Name alias) { 211 return new ItemAdditionalCharges(alias, this); 212 } 213 214 @Override 215 public ItemAdditionalCharges as(Table<?> alias) { 216 return new ItemAdditionalCharges(alias.getQualifiedName(), this); 217 } 218 219 /** 220 * Rename this table 221 */ 222 @Override 223 public ItemAdditionalCharges rename(String name) { 224 return new ItemAdditionalCharges(DSL.name(name), null); 225 } 226 227 /** 228 * Rename this table 229 */ 230 @Override 231 public ItemAdditionalCharges rename(Name name) { 232 return new ItemAdditionalCharges(name, null); 233 } 234 235 /** 236 * Rename this table 237 */ 238 @Override 239 public ItemAdditionalCharges rename(Table<?> name) { 240 return new ItemAdditionalCharges(name.getQualifiedName(), null); 241 } 242 243 /** 244 * Create an inline derived table from this table 245 */ 246 @Override 247 public ItemAdditionalCharges where(Condition condition) { 248 return new ItemAdditionalCharges(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 249 } 250 251 /** 252 * Create an inline derived table from this table 253 */ 254 @Override 255 public ItemAdditionalCharges where(Collection<? extends Condition> conditions) { 256 return where(DSL.and(conditions)); 257 } 258 259 /** 260 * Create an inline derived table from this table 261 */ 262 @Override 263 public ItemAdditionalCharges where(Condition... conditions) { 264 return where(DSL.and(conditions)); 265 } 266 267 /** 268 * Create an inline derived table from this table 269 */ 270 @Override 271 public ItemAdditionalCharges where(Field<Boolean> condition) { 272 return where(DSL.condition(condition)); 273 } 274 275 /** 276 * Create an inline derived table from this table 277 */ 278 @Override 279 @PlainSQL 280 public ItemAdditionalCharges where(SQL condition) { 281 return where(DSL.condition(condition)); 282 } 283 284 /** 285 * Create an inline derived table from this table 286 */ 287 @Override 288 @PlainSQL 289 public ItemAdditionalCharges where(@Stringly.SQL String condition) { 290 return where(DSL.condition(condition)); 291 } 292 293 /** 294 * Create an inline derived table from this table 295 */ 296 @Override 297 @PlainSQL 298 public ItemAdditionalCharges where(@Stringly.SQL String condition, Object... binds) { 299 return where(DSL.condition(condition, binds)); 300 } 301 302 /** 303 * Create an inline derived table from this table 304 */ 305 @Override 306 @PlainSQL 307 public ItemAdditionalCharges where(@Stringly.SQL String condition, QueryPart... parts) { 308 return where(DSL.condition(condition, parts)); 309 } 310 311 /** 312 * Create an inline derived table from this table 313 */ 314 @Override 315 public ItemAdditionalCharges whereExists(TableLike<?> select) { 316 return where(DSL.exists(select)); 317 } 318 319 /** 320 * Create an inline derived table from this table 321 */ 322 @Override 323 public ItemAdditionalCharges whereNotExists(TableLike<?> select) { 324 return where(DSL.notExists(select)); 325 } 326}