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.ItemPK; 008import com.echothree.model.data.item.common.pk.ItemVolumePK; 009import com.echothree.model.data.item.common.pk.ItemVolumeTypePK; 010import com.echothree.model.data.uom.common.pk.UnitOfMeasureTypePK; 011import com.echothree.model.jooq.server.KeyRegistry; 012import com.echothree.model.jooq.server.tables.item.ItemVolumeTypes.ItemVolumeTypesPath; 013import com.echothree.model.jooq.server.tables.item.Items.ItemsPath; 014import com.echothree.model.jooq.server.tables.uom.UnitOfMeasureTypes.UnitOfMeasureTypesPath; 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.Name; 025import org.jooq.PlainSQL; 026import org.jooq.QueryPart; 027import org.jooq.SQL; 028import org.jooq.Stringly; 029import org.jooq.Table; 030import org.jooq.TableField; 031import org.jooq.TableLike; 032import org.jooq.TableOptions; 033import org.jooq.UniqueKey; 034import org.jooq.impl.DSL; 035import org.jooq.impl.Internal; 036import org.jooq.impl.SQLDataType; 037import org.jooq.impl.TableImpl; 038 039 040/** 041 * This class is generated by jOOQ. 042 */ 043@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 044public class ItemVolumes extends TableImpl<com.echothree.model.jooq.server.records.item.ItemVolumes> { 045 046 private static final long serialVersionUID = 1L; 047 048 /** 049 * The reference instance of <code>itemvolumes</code> 050 */ 051 public static final ItemVolumes ItemVolumes = new ItemVolumes(); 052 053 /** 054 * The class holding records for this type 055 */ 056 @Override 057 public Class<com.echothree.model.jooq.server.records.item.ItemVolumes> getRecordType() { 058 return com.echothree.model.jooq.server.records.item.ItemVolumes.class; 059 } 060 061 /** 062 * The column <code>itemvolumes.ivol_itemvolumeid</code>. 063 */ 064 public final TableField<com.echothree.model.jooq.server.records.item.ItemVolumes, ItemVolumePK> ITEM_VOLUME = createField(DSL.name("ivol_itemvolumeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ItemVolumePK.class, id -> new com.echothree.model.data.item.common.pk.ItemVolumePK(id), primaryKey -> primaryKey.getEntityId())); 065 066 /** 067 * The column <code>itemvolumes.ivol_itm_itemid</code>. 068 */ 069 public final TableField<com.echothree.model.jooq.server.records.item.ItemVolumes, ItemPK> ITEM = createField(DSL.name("ivol_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())); 070 071 /** 072 * The column <code>itemvolumes.ivol_uomt_unitofmeasuretypeid</code>. 073 */ 074 public final TableField<com.echothree.model.jooq.server.records.item.ItemVolumes, UnitOfMeasureTypePK> UNIT_OF_MEASURE_TYPE = createField(DSL.name("ivol_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())); 075 076 /** 077 * The column <code>itemvolumes.ivol_ivolt_itemvolumetypeid</code>. 078 */ 079 public final TableField<com.echothree.model.jooq.server.records.item.ItemVolumes, ItemVolumeTypePK> ITEM_VOLUME_TYPE = createField(DSL.name("ivol_ivolt_itemvolumetypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ItemVolumeTypePK.class, id -> new com.echothree.model.data.item.common.pk.ItemVolumeTypePK(id), primaryKey -> primaryKey.getEntityId())); 080 081 /** 082 * The column <code>itemvolumes.ivol_height</code>. 083 */ 084 public final TableField<com.echothree.model.jooq.server.records.item.ItemVolumes, Long> HEIGHT = createField(DSL.name("ivol_height"), SQLDataType.BIGINT.nullable(false), this, ""); 085 086 /** 087 * The column <code>itemvolumes.ivol_width</code>. 088 */ 089 public final TableField<com.echothree.model.jooq.server.records.item.ItemVolumes, Long> WIDTH = createField(DSL.name("ivol_width"), SQLDataType.BIGINT.nullable(false), this, ""); 090 091 /** 092 * The column <code>itemvolumes.ivol_depth</code>. 093 */ 094 public final TableField<com.echothree.model.jooq.server.records.item.ItemVolumes, Long> DEPTH = createField(DSL.name("ivol_depth"), SQLDataType.BIGINT.nullable(false), this, ""); 095 096 /** 097 * The column <code>itemvolumes.ivol_fromtime</code>. 098 */ 099 public final TableField<com.echothree.model.jooq.server.records.item.ItemVolumes, Long> FROM_TIME = createField(DSL.name("ivol_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 100 101 /** 102 * The column <code>itemvolumes.ivol_thrutime</code>. 103 */ 104 public final TableField<com.echothree.model.jooq.server.records.item.ItemVolumes, Long> THRU_TIME = createField(DSL.name("ivol_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 105 106 private ItemVolumes(Name alias, Table<com.echothree.model.jooq.server.records.item.ItemVolumes> aliased) { 107 this(alias, aliased, (Field<?>[]) null, null); 108 } 109 110 private ItemVolumes(Name alias, Table<com.echothree.model.jooq.server.records.item.ItemVolumes> aliased, Field<?>[] parameters, Condition where) { 111 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 112 } 113 114 /** 115 * Create an aliased <code>itemvolumes</code> table reference 116 */ 117 public ItemVolumes(String alias) { 118 this(DSL.name(alias), ItemVolumes); 119 } 120 121 /** 122 * Create an aliased <code>itemvolumes</code> table reference 123 */ 124 public ItemVolumes(Name alias) { 125 this(alias, ItemVolumes); 126 } 127 128 /** 129 * Create a <code>itemvolumes</code> table reference 130 */ 131 public ItemVolumes() { 132 this(DSL.name("itemvolumes"), null); 133 } 134 135 @Override 136 public UniqueKey<com.echothree.model.jooq.server.records.item.ItemVolumes> getPrimaryKey() { 137 return KeyRegistry.ITEM_VOLUMES_PK; 138 } 139 140 @Override 141 public List<UniqueKey<com.echothree.model.jooq.server.records.item.ItemVolumes>> getUniqueKeys() { 142 return Arrays.asList(KeyRegistry.ITEM_VOLUMES_ITEM_AND_UNIT_OF_MEASURE_TYPE_AND_ITEM_VOLUME_TYPE_AND_THRU_TIME_UK); 143 } 144 145 @Override 146 public List<ForeignKey<com.echothree.model.jooq.server.records.item.ItemVolumes, ?>> getReferences() { 147 return Arrays.asList(KeyRegistry.ITEM_VOLUMES_ITEM_FK, KeyRegistry.ITEM_VOLUMES_ITEM_VOLUME_TYPE_FK, KeyRegistry.ITEM_VOLUMES_UNIT_OF_MEASURE_TYPE_FK); 148 } 149 150 private transient ItemsPath _ivol_itm_itemid_fk; 151 152 /** 153 * Get the implicit join path to the <code>items</code> table. 154 */ 155 public ItemsPath ivol_itm_itemid_fk() { 156 if (_ivol_itm_itemid_fk == null) 157 _ivol_itm_itemid_fk = new ItemsPath(this, KeyRegistry.ITEM_VOLUMES_ITEM_FK, null); 158 159 return _ivol_itm_itemid_fk; 160 } 161 162 private transient ItemVolumeTypesPath _ivol_ivolt_itemvolumetypeid_fk; 163 164 /** 165 * Get the implicit join path to the <code>itemvolumetypes</code> table. 166 */ 167 public ItemVolumeTypesPath ivol_ivolt_itemvolumetypeid_fk() { 168 if (_ivol_ivolt_itemvolumetypeid_fk == null) 169 _ivol_ivolt_itemvolumetypeid_fk = new ItemVolumeTypesPath(this, KeyRegistry.ITEM_VOLUMES_ITEM_VOLUME_TYPE_FK, null); 170 171 return _ivol_ivolt_itemvolumetypeid_fk; 172 } 173 174 private transient UnitOfMeasureTypesPath _ivol_uomt_unitofmeasuretypeid_fk; 175 176 /** 177 * Get the implicit join path to the <code>unitofmeasuretypes</code> table. 178 */ 179 public UnitOfMeasureTypesPath ivol_uomt_unitofmeasuretypeid_fk() { 180 if (_ivol_uomt_unitofmeasuretypeid_fk == null) 181 _ivol_uomt_unitofmeasuretypeid_fk = new UnitOfMeasureTypesPath(this, KeyRegistry.ITEM_VOLUMES_UNIT_OF_MEASURE_TYPE_FK, null); 182 183 return _ivol_uomt_unitofmeasuretypeid_fk; 184 } 185 186 @Override 187 public ItemVolumes as(String alias) { 188 return new ItemVolumes(DSL.name(alias), this); 189 } 190 191 @Override 192 public ItemVolumes as(Name alias) { 193 return new ItemVolumes(alias, this); 194 } 195 196 @Override 197 public ItemVolumes as(Table<?> alias) { 198 return new ItemVolumes(alias.getQualifiedName(), this); 199 } 200 201 /** 202 * Rename this table 203 */ 204 @Override 205 public ItemVolumes rename(String name) { 206 return new ItemVolumes(DSL.name(name), null); 207 } 208 209 /** 210 * Rename this table 211 */ 212 @Override 213 public ItemVolumes rename(Name name) { 214 return new ItemVolumes(name, null); 215 } 216 217 /** 218 * Rename this table 219 */ 220 @Override 221 public ItemVolumes rename(Table<?> name) { 222 return new ItemVolumes(name.getQualifiedName(), null); 223 } 224 225 /** 226 * Create an inline derived table from this table 227 */ 228 @Override 229 public ItemVolumes where(Condition condition) { 230 return new ItemVolumes(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 231 } 232 233 /** 234 * Create an inline derived table from this table 235 */ 236 @Override 237 public ItemVolumes where(Collection<? extends Condition> conditions) { 238 return where(DSL.and(conditions)); 239 } 240 241 /** 242 * Create an inline derived table from this table 243 */ 244 @Override 245 public ItemVolumes where(Condition... conditions) { 246 return where(DSL.and(conditions)); 247 } 248 249 /** 250 * Create an inline derived table from this table 251 */ 252 @Override 253 public ItemVolumes where(Field<Boolean> condition) { 254 return where(DSL.condition(condition)); 255 } 256 257 /** 258 * Create an inline derived table from this table 259 */ 260 @Override 261 @PlainSQL 262 public ItemVolumes where(SQL condition) { 263 return where(DSL.condition(condition)); 264 } 265 266 /** 267 * Create an inline derived table from this table 268 */ 269 @Override 270 @PlainSQL 271 public ItemVolumes where(@Stringly.SQL String 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 ItemVolumes where(@Stringly.SQL String condition, Object... binds) { 281 return where(DSL.condition(condition, binds)); 282 } 283 284 /** 285 * Create an inline derived table from this table 286 */ 287 @Override 288 @PlainSQL 289 public ItemVolumes where(@Stringly.SQL String condition, QueryPart... parts) { 290 return where(DSL.condition(condition, parts)); 291 } 292 293 /** 294 * Create an inline derived table from this table 295 */ 296 @Override 297 public ItemVolumes whereExists(TableLike<?> select) { 298 return where(DSL.exists(select)); 299 } 300 301 /** 302 * Create an inline derived table from this table 303 */ 304 @Override 305 public ItemVolumes whereNotExists(TableLike<?> select) { 306 return where(DSL.notExists(select)); 307 } 308}