001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.item; 005 006 007import com.echothree.model.data.item.common.pk.ItemPricePK; 008import com.echothree.model.data.item.common.pk.ItemVariablePricePK; 009import com.echothree.model.jooq.server.KeyRegistry; 010import com.echothree.model.jooq.server.tables.item.ItemPrices.ItemPricesPath; 011 012import java.util.Arrays; 013import java.util.Collection; 014import java.util.List; 015 016import org.jooq.Condition; 017import org.jooq.Converter; 018import org.jooq.Field; 019import org.jooq.ForeignKey; 020import org.jooq.Name; 021import org.jooq.PlainSQL; 022import org.jooq.QueryPart; 023import org.jooq.SQL; 024import org.jooq.Stringly; 025import org.jooq.Table; 026import org.jooq.TableField; 027import org.jooq.TableLike; 028import org.jooq.TableOptions; 029import org.jooq.UniqueKey; 030import org.jooq.impl.DSL; 031import org.jooq.impl.Internal; 032import org.jooq.impl.SQLDataType; 033import org.jooq.impl.TableImpl; 034 035 036/** 037 * This class is generated by jOOQ. 038 */ 039@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 040public class ItemVariablePrices extends TableImpl<com.echothree.model.jooq.server.records.item.ItemVariablePrices> { 041 042 private static final long serialVersionUID = 1L; 043 044 /** 045 * The reference instance of <code>itemvariableprices</code> 046 */ 047 public static final ItemVariablePrices ItemVariablePrices = new ItemVariablePrices(); 048 049 /** 050 * The class holding records for this type 051 */ 052 @Override 053 public Class<com.echothree.model.jooq.server.records.item.ItemVariablePrices> getRecordType() { 054 return com.echothree.model.jooq.server.records.item.ItemVariablePrices.class; 055 } 056 057 /** 058 * The column <code>itemvariableprices.itmvp_itemvariablepriceid</code>. 059 */ 060 public final TableField<com.echothree.model.jooq.server.records.item.ItemVariablePrices, ItemVariablePricePK> ITEM_VARIABLE_PRICE = createField(DSL.name("itmvp_itemvariablepriceid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ItemVariablePricePK.class, id -> new com.echothree.model.data.item.common.pk.ItemVariablePricePK(id), primaryKey -> primaryKey.getEntityId())); 061 062 /** 063 * The column <code>itemvariableprices.itmvp_itmp_itempriceid</code>. 064 */ 065 public final TableField<com.echothree.model.jooq.server.records.item.ItemVariablePrices, ItemPricePK> ITEM_PRICE = createField(DSL.name("itmvp_itmp_itempriceid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ItemPricePK.class, id -> new com.echothree.model.data.item.common.pk.ItemPricePK(id), primaryKey -> primaryKey.getEntityId())); 066 067 /** 068 * The column <code>itemvariableprices.itmvp_minimumunitprice</code>. 069 */ 070 public final TableField<com.echothree.model.jooq.server.records.item.ItemVariablePrices, Long> MINIMUM_UNIT_PRICE = createField(DSL.name("itmvp_minimumunitprice"), SQLDataType.BIGINT.nullable(false), this, ""); 071 072 /** 073 * The column <code>itemvariableprices.itmvp_maximumunitprice</code>. 074 */ 075 public final TableField<com.echothree.model.jooq.server.records.item.ItemVariablePrices, Long> MAXIMUM_UNIT_PRICE = createField(DSL.name("itmvp_maximumunitprice"), SQLDataType.BIGINT.nullable(false), this, ""); 076 077 /** 078 * The column <code>itemvariableprices.itmvp_unitpriceincrement</code>. 079 */ 080 public final TableField<com.echothree.model.jooq.server.records.item.ItemVariablePrices, Long> UNIT_PRICE_INCREMENT = createField(DSL.name("itmvp_unitpriceincrement"), SQLDataType.BIGINT.nullable(false), this, ""); 081 082 /** 083 * The column <code>itemvariableprices.itmvp_fromtime</code>. 084 */ 085 public final TableField<com.echothree.model.jooq.server.records.item.ItemVariablePrices, Long> FROM_TIME = createField(DSL.name("itmvp_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 086 087 /** 088 * The column <code>itemvariableprices.itmvp_thrutime</code>. 089 */ 090 public final TableField<com.echothree.model.jooq.server.records.item.ItemVariablePrices, Long> THRU_TIME = createField(DSL.name("itmvp_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 091 092 private ItemVariablePrices(Name alias, Table<com.echothree.model.jooq.server.records.item.ItemVariablePrices> aliased) { 093 this(alias, aliased, (Field<?>[]) null, null); 094 } 095 096 private ItemVariablePrices(Name alias, Table<com.echothree.model.jooq.server.records.item.ItemVariablePrices> aliased, Field<?>[] parameters, Condition where) { 097 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 098 } 099 100 /** 101 * Create an aliased <code>itemvariableprices</code> table reference 102 */ 103 public ItemVariablePrices(String alias) { 104 this(DSL.name(alias), ItemVariablePrices); 105 } 106 107 /** 108 * Create an aliased <code>itemvariableprices</code> table reference 109 */ 110 public ItemVariablePrices(Name alias) { 111 this(alias, ItemVariablePrices); 112 } 113 114 /** 115 * Create a <code>itemvariableprices</code> table reference 116 */ 117 public ItemVariablePrices() { 118 this(DSL.name("itemvariableprices"), null); 119 } 120 121 @Override 122 public UniqueKey<com.echothree.model.jooq.server.records.item.ItemVariablePrices> getPrimaryKey() { 123 return KeyRegistry.ITEM_VARIABLE_PRICES_PK; 124 } 125 126 @Override 127 public List<UniqueKey<com.echothree.model.jooq.server.records.item.ItemVariablePrices>> getUniqueKeys() { 128 return Arrays.asList(KeyRegistry.ITEM_VARIABLE_PRICES_ITEM_PRICE_AND_THRU_TIME_UK); 129 } 130 131 @Override 132 public List<ForeignKey<com.echothree.model.jooq.server.records.item.ItemVariablePrices, ?>> getReferences() { 133 return Arrays.asList(KeyRegistry.ITEM_VARIABLE_PRICES_ITEM_PRICE_FK); 134 } 135 136 private transient ItemPricesPath _itmvp_itmp_itempriceid_fk; 137 138 /** 139 * Get the implicit join path to the <code>itemprices</code> table. 140 */ 141 public ItemPricesPath itmvp_itmp_itempriceid_fk() { 142 if (_itmvp_itmp_itempriceid_fk == null) 143 _itmvp_itmp_itempriceid_fk = new ItemPricesPath(this, KeyRegistry.ITEM_VARIABLE_PRICES_ITEM_PRICE_FK, null); 144 145 return _itmvp_itmp_itempriceid_fk; 146 } 147 148 @Override 149 public ItemVariablePrices as(String alias) { 150 return new ItemVariablePrices(DSL.name(alias), this); 151 } 152 153 @Override 154 public ItemVariablePrices as(Name alias) { 155 return new ItemVariablePrices(alias, this); 156 } 157 158 @Override 159 public ItemVariablePrices as(Table<?> alias) { 160 return new ItemVariablePrices(alias.getQualifiedName(), this); 161 } 162 163 /** 164 * Rename this table 165 */ 166 @Override 167 public ItemVariablePrices rename(String name) { 168 return new ItemVariablePrices(DSL.name(name), null); 169 } 170 171 /** 172 * Rename this table 173 */ 174 @Override 175 public ItemVariablePrices rename(Name name) { 176 return new ItemVariablePrices(name, null); 177 } 178 179 /** 180 * Rename this table 181 */ 182 @Override 183 public ItemVariablePrices rename(Table<?> name) { 184 return new ItemVariablePrices(name.getQualifiedName(), null); 185 } 186 187 /** 188 * Create an inline derived table from this table 189 */ 190 @Override 191 public ItemVariablePrices where(Condition condition) { 192 return new ItemVariablePrices(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 193 } 194 195 /** 196 * Create an inline derived table from this table 197 */ 198 @Override 199 public ItemVariablePrices where(Collection<? extends Condition> conditions) { 200 return where(DSL.and(conditions)); 201 } 202 203 /** 204 * Create an inline derived table from this table 205 */ 206 @Override 207 public ItemVariablePrices where(Condition... conditions) { 208 return where(DSL.and(conditions)); 209 } 210 211 /** 212 * Create an inline derived table from this table 213 */ 214 @Override 215 public ItemVariablePrices where(Field<Boolean> condition) { 216 return where(DSL.condition(condition)); 217 } 218 219 /** 220 * Create an inline derived table from this table 221 */ 222 @Override 223 @PlainSQL 224 public ItemVariablePrices where(SQL condition) { 225 return where(DSL.condition(condition)); 226 } 227 228 /** 229 * Create an inline derived table from this table 230 */ 231 @Override 232 @PlainSQL 233 public ItemVariablePrices where(@Stringly.SQL String condition) { 234 return where(DSL.condition(condition)); 235 } 236 237 /** 238 * Create an inline derived table from this table 239 */ 240 @Override 241 @PlainSQL 242 public ItemVariablePrices where(@Stringly.SQL String condition, Object... binds) { 243 return where(DSL.condition(condition, binds)); 244 } 245 246 /** 247 * Create an inline derived table from this table 248 */ 249 @Override 250 @PlainSQL 251 public ItemVariablePrices where(@Stringly.SQL String condition, QueryPart... parts) { 252 return where(DSL.condition(condition, parts)); 253 } 254 255 /** 256 * Create an inline derived table from this table 257 */ 258 @Override 259 public ItemVariablePrices whereExists(TableLike<?> select) { 260 return where(DSL.exists(select)); 261 } 262 263 /** 264 * Create an inline derived table from this table 265 */ 266 @Override 267 public ItemVariablePrices whereNotExists(TableLike<?> select) { 268 return where(DSL.notExists(select)); 269 } 270}