001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.inventory; 005 006 007import com.echothree.model.data.inventory.common.pk.InventoryLocationGroupDetailPK; 008import com.echothree.model.data.inventory.common.pk.InventoryLocationGroupPK; 009import com.echothree.model.data.party.common.pk.PartyPK; 010import com.echothree.model.jooq.server.KeyRegistry; 011import com.echothree.model.jooq.server.tables.inventory.InventoryLocationGroups.InventoryLocationGroupsPath; 012import com.echothree.model.jooq.server.tables.party.Parties.PartiesPath; 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 InventoryLocationGroupDetails extends TableImpl<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails> { 046 047 private static final long serialVersionUID = 1L; 048 049 /** 050 * The reference instance of <code>inventorylocationgroupdetails</code> 051 */ 052 public static final InventoryLocationGroupDetails InventoryLocationGroupDetails = new InventoryLocationGroupDetails(); 053 054 /** 055 * The class holding records for this type 056 */ 057 @Override 058 public Class<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails> getRecordType() { 059 return com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails.class; 060 } 061 062 /** 063 * The column 064 * <code>inventorylocationgroupdetails.invlocgrpdt_inventorylocationgroupdetailid</code>. 065 */ 066 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails, InventoryLocationGroupDetailPK> INVENTORY_LOCATION_GROUP_DETAIL = createField(DSL.name("invlocgrpdt_inventorylocationgroupdetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, InventoryLocationGroupDetailPK.class, id -> new com.echothree.model.data.inventory.common.pk.InventoryLocationGroupDetailPK(id), primaryKey -> primaryKey.getEntityId())); 067 068 /** 069 * The column 070 * <code>inventorylocationgroupdetails.invlocgrpdt_invlocgrp_inventorylocationgroupid</code>. 071 */ 072 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails, InventoryLocationGroupPK> INVENTORY_LOCATION_GROUP = createField(DSL.name("invlocgrpdt_invlocgrp_inventorylocationgroupid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, InventoryLocationGroupPK.class, id -> new com.echothree.model.data.inventory.common.pk.InventoryLocationGroupPK(id), primaryKey -> primaryKey.getEntityId())); 073 074 /** 075 * The column 076 * <code>inventorylocationgroupdetails.invlocgrpdt_warehousepartyid</code>. 077 */ 078 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails, PartyPK> WAREHOUSE_PARTY = createField(DSL.name("invlocgrpdt_warehousepartyid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PartyPK.class, id -> new com.echothree.model.data.party.common.pk.PartyPK(id), primaryKey -> primaryKey.getEntityId())); 079 080 /** 081 * The column 082 * <code>inventorylocationgroupdetails.invlocgrpdt_inventorylocationgroupname</code>. 083 */ 084 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails, String> INVENTORY_LOCATION_GROUP_NAME = createField(DSL.name("invlocgrpdt_inventorylocationgroupname"), SQLDataType.VARCHAR(40).nullable(false), this, ""); 085 086 /** 087 * The column 088 * <code>inventorylocationgroupdetails.invlocgrpdt_isdefault</code>. 089 */ 090 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails, Boolean> IS_DEFAULT = createField(DSL.name("invlocgrpdt_isdefault"), SQLDataType.BIT.nullable(false), this, ""); 091 092 /** 093 * The column 094 * <code>inventorylocationgroupdetails.invlocgrpdt_sortorder</code>. 095 */ 096 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails, Integer> SORT_ORDER = createField(DSL.name("invlocgrpdt_sortorder"), SQLDataType.INTEGER.nullable(false), this, ""); 097 098 /** 099 * The column 100 * <code>inventorylocationgroupdetails.invlocgrpdt_fromtime</code>. 101 */ 102 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails, Long> FROM_TIME = createField(DSL.name("invlocgrpdt_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 103 104 /** 105 * The column 106 * <code>inventorylocationgroupdetails.invlocgrpdt_thrutime</code>. 107 */ 108 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails, Long> THRU_TIME = createField(DSL.name("invlocgrpdt_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 109 110 private InventoryLocationGroupDetails(Name alias, Table<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails> aliased) { 111 this(alias, aliased, (Field<?>[]) null, null); 112 } 113 114 private InventoryLocationGroupDetails(Name alias, Table<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails> aliased, Field<?>[] parameters, Condition where) { 115 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 116 } 117 118 /** 119 * Create an aliased <code>inventorylocationgroupdetails</code> table 120 * reference 121 */ 122 public InventoryLocationGroupDetails(String alias) { 123 this(DSL.name(alias), InventoryLocationGroupDetails); 124 } 125 126 /** 127 * Create an aliased <code>inventorylocationgroupdetails</code> table 128 * reference 129 */ 130 public InventoryLocationGroupDetails(Name alias) { 131 this(alias, InventoryLocationGroupDetails); 132 } 133 134 /** 135 * Create a <code>inventorylocationgroupdetails</code> table reference 136 */ 137 public InventoryLocationGroupDetails() { 138 this(DSL.name("inventorylocationgroupdetails"), null); 139 } 140 141 public <O extends Record> InventoryLocationGroupDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails> parentPath) { 142 super(path, childPath, parentPath, InventoryLocationGroupDetails); 143 } 144 145 /** 146 * A subtype implementing {@link Path} for simplified path-based joins. 147 */ 148 public static class InventoryLocationGroupDetailsPath extends InventoryLocationGroupDetails implements Path<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails> { 149 150 private static final long serialVersionUID = 1L; 151 public <O extends Record> InventoryLocationGroupDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails> parentPath) { 152 super(path, childPath, parentPath); 153 } 154 private InventoryLocationGroupDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails> aliased) { 155 super(alias, aliased); 156 } 157 158 @Override 159 public InventoryLocationGroupDetailsPath as(String alias) { 160 return new InventoryLocationGroupDetailsPath(DSL.name(alias), this); 161 } 162 163 @Override 164 public InventoryLocationGroupDetailsPath as(Name alias) { 165 return new InventoryLocationGroupDetailsPath(alias, this); 166 } 167 168 @Override 169 public InventoryLocationGroupDetailsPath as(Table<?> alias) { 170 return new InventoryLocationGroupDetailsPath(alias.getQualifiedName(), this); 171 } 172 } 173 174 @Override 175 public UniqueKey<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails> getPrimaryKey() { 176 return KeyRegistry.INVENTORY_LOCATION_GROUP_DETAILS_PK; 177 } 178 179 @Override 180 public List<UniqueKey<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails>> getUniqueKeys() { 181 return Arrays.asList(KeyRegistry.INVENTORY_LOCATION_GROUP_DETAILS_INVENTORY_LOCATION_GROUP_AND_THRU_TIME_UK, KeyRegistry.INVENTORY_LOCATION_GROUP_DETAILS_WAREHOUSE_PARTY_AND_INVENTORY_LOCATION_GROUP_NAME_AND_THRU_TIME_UK); 182 } 183 184 @Override 185 public List<ForeignKey<com.echothree.model.jooq.server.records.inventory.InventoryLocationGroupDetails, ?>> getReferences() { 186 return Arrays.asList(KeyRegistry.INVENTORY_LOCATION_GROUP_DETAILS_INVENTORY_LOCATION_GROUP_FK, KeyRegistry.INVENTORY_LOCATION_GROUP_DETAILS_WAREHOUSE_PARTY_FK); 187 } 188 189 private transient InventoryLocationGroupsPath _invlocgrpdt_invlocgrp_inventorylocationgroupid_fk; 190 191 /** 192 * Get the implicit join path to the <code>inventorylocationgroups</code> 193 * table. 194 */ 195 public InventoryLocationGroupsPath invlocgrpdt_invlocgrp_inventorylocationgroupid_fk() { 196 if (_invlocgrpdt_invlocgrp_inventorylocationgroupid_fk == null) 197 _invlocgrpdt_invlocgrp_inventorylocationgroupid_fk = new InventoryLocationGroupsPath(this, KeyRegistry.INVENTORY_LOCATION_GROUP_DETAILS_INVENTORY_LOCATION_GROUP_FK, null); 198 199 return _invlocgrpdt_invlocgrp_inventorylocationgroupid_fk; 200 } 201 202 private transient PartiesPath _invlocgrpdt_warehousepartyid_fk; 203 204 /** 205 * Get the implicit join path to the <code>parties</code> table. 206 */ 207 public PartiesPath invlocgrpdt_warehousepartyid_fk() { 208 if (_invlocgrpdt_warehousepartyid_fk == null) 209 _invlocgrpdt_warehousepartyid_fk = new PartiesPath(this, KeyRegistry.INVENTORY_LOCATION_GROUP_DETAILS_WAREHOUSE_PARTY_FK, null); 210 211 return _invlocgrpdt_warehousepartyid_fk; 212 } 213 214 @Override 215 public InventoryLocationGroupDetails as(String alias) { 216 return new InventoryLocationGroupDetails(DSL.name(alias), this); 217 } 218 219 @Override 220 public InventoryLocationGroupDetails as(Name alias) { 221 return new InventoryLocationGroupDetails(alias, this); 222 } 223 224 @Override 225 public InventoryLocationGroupDetails as(Table<?> alias) { 226 return new InventoryLocationGroupDetails(alias.getQualifiedName(), this); 227 } 228 229 /** 230 * Rename this table 231 */ 232 @Override 233 public InventoryLocationGroupDetails rename(String name) { 234 return new InventoryLocationGroupDetails(DSL.name(name), null); 235 } 236 237 /** 238 * Rename this table 239 */ 240 @Override 241 public InventoryLocationGroupDetails rename(Name name) { 242 return new InventoryLocationGroupDetails(name, null); 243 } 244 245 /** 246 * Rename this table 247 */ 248 @Override 249 public InventoryLocationGroupDetails rename(Table<?> name) { 250 return new InventoryLocationGroupDetails(name.getQualifiedName(), null); 251 } 252 253 /** 254 * Create an inline derived table from this table 255 */ 256 @Override 257 public InventoryLocationGroupDetails where(Condition condition) { 258 return new InventoryLocationGroupDetails(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 InventoryLocationGroupDetails 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 InventoryLocationGroupDetails 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 InventoryLocationGroupDetails 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 InventoryLocationGroupDetails 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 InventoryLocationGroupDetails 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 InventoryLocationGroupDetails 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 InventoryLocationGroupDetails 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 InventoryLocationGroupDetails 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 InventoryLocationGroupDetails whereNotExists(TableLike<?> select) { 334 return where(DSL.notExists(select)); 335 } 336}