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.LocationNameElementDetailPK; 008import com.echothree.model.data.warehouse.common.pk.LocationNameElementPK; 009import com.echothree.model.data.warehouse.common.pk.LocationTypePK; 010import com.echothree.model.jooq.server.KeyRegistry; 011import com.echothree.model.jooq.server.tables.warehouse.LocationNameElements.LocationNameElementsPath; 012import com.echothree.model.jooq.server.tables.warehouse.LocationTypes.LocationTypesPath; 013 014import java.util.Arrays; 015import java.util.Collection; 016import java.util.List; 017 018import org.jooq.Condition; 019import org.jooq.Converter; 020import org.jooq.Field; 021import org.jooq.ForeignKey; 022import org.jooq.InverseForeignKey; 023import org.jooq.Name; 024import org.jooq.Path; 025import org.jooq.PlainSQL; 026import org.jooq.QueryPart; 027import org.jooq.Record; 028import org.jooq.SQL; 029import org.jooq.Stringly; 030import org.jooq.Table; 031import org.jooq.TableField; 032import org.jooq.TableLike; 033import org.jooq.TableOptions; 034import org.jooq.UniqueKey; 035import org.jooq.impl.DSL; 036import org.jooq.impl.Internal; 037import org.jooq.impl.SQLDataType; 038import org.jooq.impl.TableImpl; 039 040 041/** 042 * This class is generated by jOOQ. 043 */ 044@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 045public class LocationNameElementDetails extends TableImpl<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails> { 046 047 private static final long serialVersionUID = 1L; 048 049 /** 050 * The reference instance of <code>locationnameelementdetails</code> 051 */ 052 public static final LocationNameElementDetails LocationNameElementDetails = new LocationNameElementDetails(); 053 054 /** 055 * The class holding records for this type 056 */ 057 @Override 058 public Class<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails> getRecordType() { 059 return com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails.class; 060 } 061 062 /** 063 * The column 064 * <code>locationnameelementdetails.locnedt_locationnameelementdetailid</code>. 065 */ 066 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails, LocationNameElementDetailPK> LOCATION_NAME_ELEMENT_DETAIL = createField(DSL.name("locnedt_locationnameelementdetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, LocationNameElementDetailPK.class, id -> new com.echothree.model.data.warehouse.common.pk.LocationNameElementDetailPK(id), primaryKey -> primaryKey.getEntityId())); 067 068 /** 069 * The column 070 * <code>locationnameelementdetails.locnedt_locne_locationnameelementid</code>. 071 */ 072 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails, LocationNameElementPK> LOCATION_NAME_ELEMENT = createField(DSL.name("locnedt_locne_locationnameelementid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, LocationNameElementPK.class, id -> new com.echothree.model.data.warehouse.common.pk.LocationNameElementPK(id), primaryKey -> primaryKey.getEntityId())); 073 074 /** 075 * The column 076 * <code>locationnameelementdetails.locnedt_loctyp_locationtypeid</code>. 077 */ 078 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails, LocationTypePK> LOCATION_TYPE = createField(DSL.name("locnedt_loctyp_locationtypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, LocationTypePK.class, id -> new com.echothree.model.data.warehouse.common.pk.LocationTypePK(id), primaryKey -> primaryKey.getEntityId())); 079 080 /** 081 * The column 082 * <code>locationnameelementdetails.locnedt_locationnameelementname</code>. 083 */ 084 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails, String> LOCATION_NAME_ELEMENT_NAME = createField(DSL.name("locnedt_locationnameelementname"), SQLDataType.VARCHAR(40).nullable(false), this, ""); 085 086 /** 087 * The column <code>locationnameelementdetails.locnedt_offset</code>. 088 */ 089 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails, Integer> OFFSET = createField(DSL.name("locnedt_offset"), SQLDataType.INTEGER.nullable(false), this, ""); 090 091 /** 092 * The column <code>locationnameelementdetails.locnedt_length</code>. 093 */ 094 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails, Integer> LENGTH = createField(DSL.name("locnedt_length"), SQLDataType.INTEGER.nullable(false), this, ""); 095 096 /** 097 * The column 098 * <code>locationnameelementdetails.locnedt_validationpattern</code>. 099 */ 100 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails, String> VALIDATION_PATTERN = createField(DSL.name("locnedt_validationpattern"), SQLDataType.VARCHAR(128), this, ""); 101 102 /** 103 * The column <code>locationnameelementdetails.locnedt_fromtime</code>. 104 */ 105 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails, Long> FROM_TIME = createField(DSL.name("locnedt_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 106 107 /** 108 * The column <code>locationnameelementdetails.locnedt_thrutime</code>. 109 */ 110 public final TableField<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails, Long> THRU_TIME = createField(DSL.name("locnedt_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 111 112 private LocationNameElementDetails(Name alias, Table<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails> aliased) { 113 this(alias, aliased, (Field<?>[]) null, null); 114 } 115 116 private LocationNameElementDetails(Name alias, Table<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails> aliased, Field<?>[] parameters, Condition where) { 117 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 118 } 119 120 /** 121 * Create an aliased <code>locationnameelementdetails</code> table reference 122 */ 123 public LocationNameElementDetails(String alias) { 124 this(DSL.name(alias), LocationNameElementDetails); 125 } 126 127 /** 128 * Create an aliased <code>locationnameelementdetails</code> table reference 129 */ 130 public LocationNameElementDetails(Name alias) { 131 this(alias, LocationNameElementDetails); 132 } 133 134 /** 135 * Create a <code>locationnameelementdetails</code> table reference 136 */ 137 public LocationNameElementDetails() { 138 this(DSL.name("locationnameelementdetails"), null); 139 } 140 141 public <O extends Record> LocationNameElementDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails> parentPath) { 142 super(path, childPath, parentPath, LocationNameElementDetails); 143 } 144 145 /** 146 * A subtype implementing {@link Path} for simplified path-based joins. 147 */ 148 public static class LocationNameElementDetailsPath extends LocationNameElementDetails implements Path<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails> { 149 150 private static final long serialVersionUID = 1L; 151 public <O extends Record> LocationNameElementDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails> parentPath) { 152 super(path, childPath, parentPath); 153 } 154 private LocationNameElementDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails> aliased) { 155 super(alias, aliased); 156 } 157 158 @Override 159 public LocationNameElementDetailsPath as(String alias) { 160 return new LocationNameElementDetailsPath(DSL.name(alias), this); 161 } 162 163 @Override 164 public LocationNameElementDetailsPath as(Name alias) { 165 return new LocationNameElementDetailsPath(alias, this); 166 } 167 168 @Override 169 public LocationNameElementDetailsPath as(Table<?> alias) { 170 return new LocationNameElementDetailsPath(alias.getQualifiedName(), this); 171 } 172 } 173 174 @Override 175 public UniqueKey<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails> getPrimaryKey() { 176 return KeyRegistry.LOCATION_NAME_ELEMENT_DETAILS_PK; 177 } 178 179 @Override 180 public List<UniqueKey<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails>> getUniqueKeys() { 181 return Arrays.asList(KeyRegistry.LOCATION_NAME_ELEMENT_DETAILS_LOCATION_NAME_ELEMENT_AND_THRU_TIME_UK, KeyRegistry.LOCATION_NAME_ELEMENT_DETAILS_LOCATION_TYPE_AND_LOCATION_NAME_ELEMENT_NAME_AND_THRU_TIME_UK); 182 } 183 184 @Override 185 public List<ForeignKey<com.echothree.model.jooq.server.records.warehouse.LocationNameElementDetails, ?>> getReferences() { 186 return Arrays.asList(KeyRegistry.LOCATION_NAME_ELEMENT_DETAILS_LOCATION_NAME_ELEMENT_FK, KeyRegistry.LOCATION_NAME_ELEMENT_DETAILS_LOCATION_TYPE_FK); 187 } 188 189 private transient LocationNameElementsPath _locnedt_locne_locationnameelementid_fk; 190 191 /** 192 * Get the implicit join path to the <code>locationnameelements</code> 193 * table. 194 */ 195 public LocationNameElementsPath locnedt_locne_locationnameelementid_fk() { 196 if (_locnedt_locne_locationnameelementid_fk == null) 197 _locnedt_locne_locationnameelementid_fk = new LocationNameElementsPath(this, KeyRegistry.LOCATION_NAME_ELEMENT_DETAILS_LOCATION_NAME_ELEMENT_FK, null); 198 199 return _locnedt_locne_locationnameelementid_fk; 200 } 201 202 private transient LocationTypesPath _locnedt_loctyp_locationtypeid_fk; 203 204 /** 205 * Get the implicit join path to the <code>locationtypes</code> table. 206 */ 207 public LocationTypesPath locnedt_loctyp_locationtypeid_fk() { 208 if (_locnedt_loctyp_locationtypeid_fk == null) 209 _locnedt_loctyp_locationtypeid_fk = new LocationTypesPath(this, KeyRegistry.LOCATION_NAME_ELEMENT_DETAILS_LOCATION_TYPE_FK, null); 210 211 return _locnedt_loctyp_locationtypeid_fk; 212 } 213 214 @Override 215 public LocationNameElementDetails as(String alias) { 216 return new LocationNameElementDetails(DSL.name(alias), this); 217 } 218 219 @Override 220 public LocationNameElementDetails as(Name alias) { 221 return new LocationNameElementDetails(alias, this); 222 } 223 224 @Override 225 public LocationNameElementDetails as(Table<?> alias) { 226 return new LocationNameElementDetails(alias.getQualifiedName(), this); 227 } 228 229 /** 230 * Rename this table 231 */ 232 @Override 233 public LocationNameElementDetails rename(String name) { 234 return new LocationNameElementDetails(DSL.name(name), null); 235 } 236 237 /** 238 * Rename this table 239 */ 240 @Override 241 public LocationNameElementDetails rename(Name name) { 242 return new LocationNameElementDetails(name, null); 243 } 244 245 /** 246 * Rename this table 247 */ 248 @Override 249 public LocationNameElementDetails rename(Table<?> name) { 250 return new LocationNameElementDetails(name.getQualifiedName(), null); 251 } 252 253 /** 254 * Create an inline derived table from this table 255 */ 256 @Override 257 public LocationNameElementDetails where(Condition condition) { 258 return new LocationNameElementDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 259 } 260 261 /** 262 * Create an inline derived table from this table 263 */ 264 @Override 265 public LocationNameElementDetails where(Collection<? extends Condition> conditions) { 266 return where(DSL.and(conditions)); 267 } 268 269 /** 270 * Create an inline derived table from this table 271 */ 272 @Override 273 public LocationNameElementDetails where(Condition... conditions) { 274 return where(DSL.and(conditions)); 275 } 276 277 /** 278 * Create an inline derived table from this table 279 */ 280 @Override 281 public LocationNameElementDetails where(Field<Boolean> condition) { 282 return where(DSL.condition(condition)); 283 } 284 285 /** 286 * Create an inline derived table from this table 287 */ 288 @Override 289 @PlainSQL 290 public LocationNameElementDetails where(SQL condition) { 291 return where(DSL.condition(condition)); 292 } 293 294 /** 295 * Create an inline derived table from this table 296 */ 297 @Override 298 @PlainSQL 299 public LocationNameElementDetails where(@Stringly.SQL String condition) { 300 return where(DSL.condition(condition)); 301 } 302 303 /** 304 * Create an inline derived table from this table 305 */ 306 @Override 307 @PlainSQL 308 public LocationNameElementDetails where(@Stringly.SQL String condition, Object... binds) { 309 return where(DSL.condition(condition, binds)); 310 } 311 312 /** 313 * Create an inline derived table from this table 314 */ 315 @Override 316 @PlainSQL 317 public LocationNameElementDetails where(@Stringly.SQL String condition, QueryPart... parts) { 318 return where(DSL.condition(condition, parts)); 319 } 320 321 /** 322 * Create an inline derived table from this table 323 */ 324 @Override 325 public LocationNameElementDetails whereExists(TableLike<?> select) { 326 return where(DSL.exists(select)); 327 } 328 329 /** 330 * Create an inline derived table from this table 331 */ 332 @Override 333 public LocationNameElementDetails whereNotExists(TableLike<?> select) { 334 return where(DSL.notExists(select)); 335 } 336}