001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.order; 005 006 007import com.echothree.model.data.order.common.pk.OrderShipmentGroupDetailPK; 008import com.echothree.model.data.order.common.pk.OrderShipmentGroupPK; 009import com.echothree.model.jooq.server.KeyRegistry; 010import com.echothree.model.jooq.server.tables.order.OrderShipmentGroupDetails.OrderShipmentGroupDetailsPath; 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.InverseForeignKey; 021import org.jooq.Name; 022import org.jooq.Path; 023import org.jooq.PlainSQL; 024import org.jooq.QueryPart; 025import org.jooq.Record; 026import org.jooq.SQL; 027import org.jooq.Stringly; 028import org.jooq.Table; 029import org.jooq.TableField; 030import org.jooq.TableLike; 031import org.jooq.TableOptions; 032import org.jooq.UniqueKey; 033import org.jooq.impl.DSL; 034import org.jooq.impl.Internal; 035import org.jooq.impl.SQLDataType; 036import org.jooq.impl.TableImpl; 037 038 039/** 040 * This class is generated by jOOQ. 041 */ 042@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 043public class OrderShipmentGroups extends TableImpl<com.echothree.model.jooq.server.records.order.OrderShipmentGroups> { 044 045 private static final long serialVersionUID = 1L; 046 047 /** 048 * The reference instance of <code>ordershipmentgroups</code> 049 */ 050 public static final OrderShipmentGroups OrderShipmentGroups = new OrderShipmentGroups(); 051 052 /** 053 * The class holding records for this type 054 */ 055 @Override 056 public Class<com.echothree.model.jooq.server.records.order.OrderShipmentGroups> getRecordType() { 057 return com.echothree.model.jooq.server.records.order.OrderShipmentGroups.class; 058 } 059 060 /** 061 * The column 062 * <code>ordershipmentgroups.ordshpgrp_ordershipmentgroupid</code>. 063 */ 064 public final TableField<com.echothree.model.jooq.server.records.order.OrderShipmentGroups, OrderShipmentGroupPK> ORDER_SHIPMENT_GROUP = createField(DSL.name("ordshpgrp_ordershipmentgroupid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, OrderShipmentGroupPK.class, id -> new com.echothree.model.data.order.common.pk.OrderShipmentGroupPK(id), primaryKey -> primaryKey.getEntityId())); 065 066 /** 067 * The column <code>ordershipmentgroups.ordshpgrp_activedetailid</code>. 068 */ 069 public final TableField<com.echothree.model.jooq.server.records.order.OrderShipmentGroups, OrderShipmentGroupDetailPK> ACTIVE_DETAIL = createField(DSL.name("ordshpgrp_activedetailid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, OrderShipmentGroupDetailPK.class, id -> new com.echothree.model.data.order.common.pk.OrderShipmentGroupDetailPK(id), primaryKey -> primaryKey.getEntityId())); 070 071 /** 072 * The column <code>ordershipmentgroups.ordshpgrp_lastdetailid</code>. 073 */ 074 public final TableField<com.echothree.model.jooq.server.records.order.OrderShipmentGroups, OrderShipmentGroupDetailPK> LAST_DETAIL = createField(DSL.name("ordshpgrp_lastdetailid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, OrderShipmentGroupDetailPK.class, id -> new com.echothree.model.data.order.common.pk.OrderShipmentGroupDetailPK(id), primaryKey -> primaryKey.getEntityId())); 075 076 private OrderShipmentGroups(Name alias, Table<com.echothree.model.jooq.server.records.order.OrderShipmentGroups> aliased) { 077 this(alias, aliased, (Field<?>[]) null, null); 078 } 079 080 private OrderShipmentGroups(Name alias, Table<com.echothree.model.jooq.server.records.order.OrderShipmentGroups> aliased, Field<?>[] parameters, Condition where) { 081 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 082 } 083 084 /** 085 * Create an aliased <code>ordershipmentgroups</code> table reference 086 */ 087 public OrderShipmentGroups(String alias) { 088 this(DSL.name(alias), OrderShipmentGroups); 089 } 090 091 /** 092 * Create an aliased <code>ordershipmentgroups</code> table reference 093 */ 094 public OrderShipmentGroups(Name alias) { 095 this(alias, OrderShipmentGroups); 096 } 097 098 /** 099 * Create a <code>ordershipmentgroups</code> table reference 100 */ 101 public OrderShipmentGroups() { 102 this(DSL.name("ordershipmentgroups"), null); 103 } 104 105 public <O extends Record> OrderShipmentGroups(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.order.OrderShipmentGroups> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.order.OrderShipmentGroups> parentPath) { 106 super(path, childPath, parentPath, OrderShipmentGroups); 107 } 108 109 /** 110 * A subtype implementing {@link Path} for simplified path-based joins. 111 */ 112 public static class OrderShipmentGroupsPath extends OrderShipmentGroups implements Path<com.echothree.model.jooq.server.records.order.OrderShipmentGroups> { 113 114 private static final long serialVersionUID = 1L; 115 public <O extends Record> OrderShipmentGroupsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.order.OrderShipmentGroups> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.order.OrderShipmentGroups> parentPath) { 116 super(path, childPath, parentPath); 117 } 118 private OrderShipmentGroupsPath(Name alias, Table<com.echothree.model.jooq.server.records.order.OrderShipmentGroups> aliased) { 119 super(alias, aliased); 120 } 121 122 @Override 123 public OrderShipmentGroupsPath as(String alias) { 124 return new OrderShipmentGroupsPath(DSL.name(alias), this); 125 } 126 127 @Override 128 public OrderShipmentGroupsPath as(Name alias) { 129 return new OrderShipmentGroupsPath(alias, this); 130 } 131 132 @Override 133 public OrderShipmentGroupsPath as(Table<?> alias) { 134 return new OrderShipmentGroupsPath(alias.getQualifiedName(), this); 135 } 136 } 137 138 @Override 139 public UniqueKey<com.echothree.model.jooq.server.records.order.OrderShipmentGroups> getPrimaryKey() { 140 return KeyRegistry.ORDER_SHIPMENT_GROUPS_PK; 141 } 142 143 @Override 144 public List<UniqueKey<com.echothree.model.jooq.server.records.order.OrderShipmentGroups>> getUniqueKeys() { 145 return Arrays.asList(KeyRegistry.ORDER_SHIPMENT_GROUPS_ACTIVE_DETAIL_UK, KeyRegistry.ORDER_SHIPMENT_GROUPS_LAST_DETAIL_UK); 146 } 147 148 @Override 149 public List<ForeignKey<com.echothree.model.jooq.server.records.order.OrderShipmentGroups, ?>> getReferences() { 150 return Arrays.asList(KeyRegistry.ORDER_SHIPMENT_GROUPS_ACTIVE_DETAIL_FK, KeyRegistry.ORDER_SHIPMENT_GROUPS_LAST_DETAIL_FK); 151 } 152 153 private transient OrderShipmentGroupDetailsPath _ordshpgrp_activedetailid_fk; 154 155 /** 156 * Get the implicit join path to the <code>ordershipmentgroupdetails</code> 157 * table, via the <code>ordshpgrp_activedetailid_fk</code> key. 158 */ 159 public OrderShipmentGroupDetailsPath ordshpgrp_activedetailid_fk() { 160 if (_ordshpgrp_activedetailid_fk == null) 161 _ordshpgrp_activedetailid_fk = new OrderShipmentGroupDetailsPath(this, KeyRegistry.ORDER_SHIPMENT_GROUPS_ACTIVE_DETAIL_FK, null); 162 163 return _ordshpgrp_activedetailid_fk; 164 } 165 166 private transient OrderShipmentGroupDetailsPath _ordshpgrp_lastdetailid_fk; 167 168 /** 169 * Get the implicit join path to the <code>ordershipmentgroupdetails</code> 170 * table, via the <code>ordshpgrp_lastdetailid_fk</code> key. 171 */ 172 public OrderShipmentGroupDetailsPath ordshpgrp_lastdetailid_fk() { 173 if (_ordshpgrp_lastdetailid_fk == null) 174 _ordshpgrp_lastdetailid_fk = new OrderShipmentGroupDetailsPath(this, KeyRegistry.ORDER_SHIPMENT_GROUPS_LAST_DETAIL_FK, null); 175 176 return _ordshpgrp_lastdetailid_fk; 177 } 178 179 @Override 180 public OrderShipmentGroups as(String alias) { 181 return new OrderShipmentGroups(DSL.name(alias), this); 182 } 183 184 @Override 185 public OrderShipmentGroups as(Name alias) { 186 return new OrderShipmentGroups(alias, this); 187 } 188 189 @Override 190 public OrderShipmentGroups as(Table<?> alias) { 191 return new OrderShipmentGroups(alias.getQualifiedName(), this); 192 } 193 194 /** 195 * Rename this table 196 */ 197 @Override 198 public OrderShipmentGroups rename(String name) { 199 return new OrderShipmentGroups(DSL.name(name), null); 200 } 201 202 /** 203 * Rename this table 204 */ 205 @Override 206 public OrderShipmentGroups rename(Name name) { 207 return new OrderShipmentGroups(name, null); 208 } 209 210 /** 211 * Rename this table 212 */ 213 @Override 214 public OrderShipmentGroups rename(Table<?> name) { 215 return new OrderShipmentGroups(name.getQualifiedName(), null); 216 } 217 218 /** 219 * Create an inline derived table from this table 220 */ 221 @Override 222 public OrderShipmentGroups where(Condition condition) { 223 return new OrderShipmentGroups(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 224 } 225 226 /** 227 * Create an inline derived table from this table 228 */ 229 @Override 230 public OrderShipmentGroups where(Collection<? extends Condition> conditions) { 231 return where(DSL.and(conditions)); 232 } 233 234 /** 235 * Create an inline derived table from this table 236 */ 237 @Override 238 public OrderShipmentGroups where(Condition... conditions) { 239 return where(DSL.and(conditions)); 240 } 241 242 /** 243 * Create an inline derived table from this table 244 */ 245 @Override 246 public OrderShipmentGroups where(Field<Boolean> condition) { 247 return where(DSL.condition(condition)); 248 } 249 250 /** 251 * Create an inline derived table from this table 252 */ 253 @Override 254 @PlainSQL 255 public OrderShipmentGroups where(SQL condition) { 256 return where(DSL.condition(condition)); 257 } 258 259 /** 260 * Create an inline derived table from this table 261 */ 262 @Override 263 @PlainSQL 264 public OrderShipmentGroups where(@Stringly.SQL String condition) { 265 return where(DSL.condition(condition)); 266 } 267 268 /** 269 * Create an inline derived table from this table 270 */ 271 @Override 272 @PlainSQL 273 public OrderShipmentGroups where(@Stringly.SQL String condition, Object... binds) { 274 return where(DSL.condition(condition, binds)); 275 } 276 277 /** 278 * Create an inline derived table from this table 279 */ 280 @Override 281 @PlainSQL 282 public OrderShipmentGroups where(@Stringly.SQL String condition, QueryPart... parts) { 283 return where(DSL.condition(condition, parts)); 284 } 285 286 /** 287 * Create an inline derived table from this table 288 */ 289 @Override 290 public OrderShipmentGroups whereExists(TableLike<?> select) { 291 return where(DSL.exists(select)); 292 } 293 294 /** 295 * Create an inline derived table from this table 296 */ 297 @Override 298 public OrderShipmentGroups whereNotExists(TableLike<?> select) { 299 return where(DSL.notExists(select)); 300 } 301}