001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.warehouse; 005 006 007import com.echothree.model.data.warehouse.common.pk.LocationPK; 008import com.echothree.model.data.warehouse.common.pk.LocationVolumePK; 009import com.echothree.model.jooq.server.KeyRegistry; 010import com.echothree.model.jooq.server.tables.warehouse.Locations.LocationsPath; 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 LocationVolumes extends TableImpl<com.echothree.model.jooq.server.records.warehouse.LocationVolumes> { 041 042 private static final long serialVersionUID = 1L; 043 044 /** 045 * The reference instance of <code>locationvolumes</code> 046 */ 047 public static final LocationVolumes LocationVolumes = new LocationVolumes(); 048 049 /** 050 * The class holding records for this type 051 */ 052 @Override 053 public Class<com.echothree.model.jooq.server.records.warehouse.LocationVolumes> getRecordType() { 054 return com.echothree.model.jooq.server.records.warehouse.LocationVolumes.class; 055 } 056 057 /** 058 * The column <code>locationvolumes.locvol_locationvolumeid</code>. 059 */ 060 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationVolumes, LocationVolumePK> LOCATION_VOLUME = createField(DSL.name("locvol_locationvolumeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, LocationVolumePK.class, id -> new com.echothree.model.data.warehouse.common.pk.LocationVolumePK(id), primaryKey -> primaryKey.getEntityId())); 061 062 /** 063 * The column <code>locationvolumes.locvol_loc_locationid</code>. 064 */ 065 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationVolumes, LocationPK> LOCATION = createField(DSL.name("locvol_loc_locationid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, LocationPK.class, id -> new com.echothree.model.data.warehouse.common.pk.LocationPK(id), primaryKey -> primaryKey.getEntityId())); 066 067 /** 068 * The column <code>locationvolumes.locvol_height</code>. 069 */ 070 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationVolumes, Long> HEIGHT = createField(DSL.name("locvol_height"), SQLDataType.BIGINT.nullable(false), this, ""); 071 072 /** 073 * The column <code>locationvolumes.locvol_width</code>. 074 */ 075 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationVolumes, Long> WIDTH = createField(DSL.name("locvol_width"), SQLDataType.BIGINT.nullable(false), this, ""); 076 077 /** 078 * The column <code>locationvolumes.locvol_depth</code>. 079 */ 080 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationVolumes, Long> DEPTH = createField(DSL.name("locvol_depth"), SQLDataType.BIGINT.nullable(false), this, ""); 081 082 /** 083 * The column <code>locationvolumes.locvol_fromtime</code>. 084 */ 085 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationVolumes, Long> FROM_TIME = createField(DSL.name("locvol_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 086 087 /** 088 * The column <code>locationvolumes.locvol_thrutime</code>. 089 */ 090 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationVolumes, Long> THRU_TIME = createField(DSL.name("locvol_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 091 092 private LocationVolumes(Name alias, Table<com.echothree.model.jooq.server.records.warehouse.LocationVolumes> aliased) { 093 this(alias, aliased, (Field<?>[]) null, null); 094 } 095 096 private LocationVolumes(Name alias, Table<com.echothree.model.jooq.server.records.warehouse.LocationVolumes> aliased, Field<?>[] parameters, Condition where) { 097 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 098 } 099 100 /** 101 * Create an aliased <code>locationvolumes</code> table reference 102 */ 103 public LocationVolumes(String alias) { 104 this(DSL.name(alias), LocationVolumes); 105 } 106 107 /** 108 * Create an aliased <code>locationvolumes</code> table reference 109 */ 110 public LocationVolumes(Name alias) { 111 this(alias, LocationVolumes); 112 } 113 114 /** 115 * Create a <code>locationvolumes</code> table reference 116 */ 117 public LocationVolumes() { 118 this(DSL.name("locationvolumes"), null); 119 } 120 121 @Override 122 public UniqueKey<com.echothree.model.jooq.server.records.warehouse.LocationVolumes> getPrimaryKey() { 123 return KeyRegistry.LOCATION_VOLUMES_PK; 124 } 125 126 @Override 127 public List<UniqueKey<com.echothree.model.jooq.server.records.warehouse.LocationVolumes>> getUniqueKeys() { 128 return Arrays.asList(KeyRegistry.LOCATION_VOLUMES_LOCATION_AND_THRU_TIME_UK); 129 } 130 131 @Override 132 public List<ForeignKey<com.echothree.model.jooq.server.records.warehouse.LocationVolumes, ?>> getReferences() { 133 return Arrays.asList(KeyRegistry.LOCATION_VOLUMES_LOCATION_FK); 134 } 135 136 private transient LocationsPath _locvol_loc_locationid_fk; 137 138 /** 139 * Get the implicit join path to the <code>locations</code> table. 140 */ 141 public LocationsPath locvol_loc_locationid_fk() { 142 if (_locvol_loc_locationid_fk == null) 143 _locvol_loc_locationid_fk = new LocationsPath(this, KeyRegistry.LOCATION_VOLUMES_LOCATION_FK, null); 144 145 return _locvol_loc_locationid_fk; 146 } 147 148 @Override 149 public LocationVolumes as(String alias) { 150 return new LocationVolumes(DSL.name(alias), this); 151 } 152 153 @Override 154 public LocationVolumes as(Name alias) { 155 return new LocationVolumes(alias, this); 156 } 157 158 @Override 159 public LocationVolumes as(Table<?> alias) { 160 return new LocationVolumes(alias.getQualifiedName(), this); 161 } 162 163 /** 164 * Rename this table 165 */ 166 @Override 167 public LocationVolumes rename(String name) { 168 return new LocationVolumes(DSL.name(name), null); 169 } 170 171 /** 172 * Rename this table 173 */ 174 @Override 175 public LocationVolumes rename(Name name) { 176 return new LocationVolumes(name, null); 177 } 178 179 /** 180 * Rename this table 181 */ 182 @Override 183 public LocationVolumes rename(Table<?> name) { 184 return new LocationVolumes(name.getQualifiedName(), null); 185 } 186 187 /** 188 * Create an inline derived table from this table 189 */ 190 @Override 191 public LocationVolumes where(Condition condition) { 192 return new LocationVolumes(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 LocationVolumes 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 LocationVolumes 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 LocationVolumes 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 LocationVolumes 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 LocationVolumes 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 LocationVolumes 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 LocationVolumes 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 LocationVolumes 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 LocationVolumes whereNotExists(TableLike<?> select) { 268 return where(DSL.notExists(select)); 269 } 270}