001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.shipping; 005 006 007import com.echothree.model.data.selector.common.pk.SelectorPK; 008import com.echothree.model.data.shipping.common.pk.ShippingMethodDetailPK; 009import com.echothree.model.data.shipping.common.pk.ShippingMethodPK; 010import com.echothree.model.jooq.server.KeyRegistry; 011import com.echothree.model.jooq.server.tables.selector.Selectors.SelectorsPath; 012import com.echothree.model.jooq.server.tables.shipping.ShippingMethods.ShippingMethodsPath; 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 ShippingMethodDetails extends TableImpl<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails> { 046 047 private static final long serialVersionUID = 1L; 048 049 /** 050 * The reference instance of <code>shippingmethoddetails</code> 051 */ 052 public static final ShippingMethodDetails ShippingMethodDetails = new ShippingMethodDetails(); 053 054 /** 055 * The class holding records for this type 056 */ 057 @Override 058 public Class<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails> getRecordType() { 059 return com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails.class; 060 } 061 062 /** 063 * The column 064 * <code>shippingmethoddetails.shmdt_shippingmethoddetailid</code>. 065 */ 066 public final TableField<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails, ShippingMethodDetailPK> SHIPPING_METHOD_DETAIL = createField(DSL.name("shmdt_shippingmethoddetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ShippingMethodDetailPK.class, id -> new com.echothree.model.data.shipping.common.pk.ShippingMethodDetailPK(id), primaryKey -> primaryKey.getEntityId())); 067 068 /** 069 * The column <code>shippingmethoddetails.shmdt_shm_shippingmethodid</code>. 070 */ 071 public final TableField<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails, ShippingMethodPK> SHIPPING_METHOD = createField(DSL.name("shmdt_shm_shippingmethodid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ShippingMethodPK.class, id -> new com.echothree.model.data.shipping.common.pk.ShippingMethodPK(id), primaryKey -> primaryKey.getEntityId())); 072 073 /** 074 * The column <code>shippingmethoddetails.shmdt_shippingmethodname</code>. 075 */ 076 public final TableField<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails, String> SHIPPING_METHOD_NAME = createField(DSL.name("shmdt_shippingmethodname"), SQLDataType.VARCHAR(40).nullable(false), this, ""); 077 078 /** 079 * The column <code>shippingmethoddetails.shmdt_geocodeselectorid</code>. 080 */ 081 public final TableField<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails, SelectorPK> GEO_CODE_SELECTOR = createField(DSL.name("shmdt_geocodeselectorid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, SelectorPK.class, id -> new com.echothree.model.data.selector.common.pk.SelectorPK(id), primaryKey -> primaryKey.getEntityId())); 082 083 /** 084 * The column <code>shippingmethoddetails.shmdt_itemselectorid</code>. 085 */ 086 public final TableField<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails, SelectorPK> ITEM_SELECTOR = createField(DSL.name("shmdt_itemselectorid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, SelectorPK.class, id -> new com.echothree.model.data.selector.common.pk.SelectorPK(id), primaryKey -> primaryKey.getEntityId())); 087 088 /** 089 * The column <code>shippingmethoddetails.shmdt_sortorder</code>. 090 */ 091 public final TableField<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails, Integer> SORT_ORDER = createField(DSL.name("shmdt_sortorder"), SQLDataType.INTEGER.nullable(false), this, ""); 092 093 /** 094 * The column <code>shippingmethoddetails.shmdt_fromtime</code>. 095 */ 096 public final TableField<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails, Long> FROM_TIME = createField(DSL.name("shmdt_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 097 098 /** 099 * The column <code>shippingmethoddetails.shmdt_thrutime</code>. 100 */ 101 public final TableField<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails, Long> THRU_TIME = createField(DSL.name("shmdt_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 102 103 private ShippingMethodDetails(Name alias, Table<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails> aliased) { 104 this(alias, aliased, (Field<?>[]) null, null); 105 } 106 107 private ShippingMethodDetails(Name alias, Table<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails> aliased, Field<?>[] parameters, Condition where) { 108 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 109 } 110 111 /** 112 * Create an aliased <code>shippingmethoddetails</code> table reference 113 */ 114 public ShippingMethodDetails(String alias) { 115 this(DSL.name(alias), ShippingMethodDetails); 116 } 117 118 /** 119 * Create an aliased <code>shippingmethoddetails</code> table reference 120 */ 121 public ShippingMethodDetails(Name alias) { 122 this(alias, ShippingMethodDetails); 123 } 124 125 /** 126 * Create a <code>shippingmethoddetails</code> table reference 127 */ 128 public ShippingMethodDetails() { 129 this(DSL.name("shippingmethoddetails"), null); 130 } 131 132 public <O extends Record> ShippingMethodDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails> parentPath) { 133 super(path, childPath, parentPath, ShippingMethodDetails); 134 } 135 136 /** 137 * A subtype implementing {@link Path} for simplified path-based joins. 138 */ 139 public static class ShippingMethodDetailsPath extends ShippingMethodDetails implements Path<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails> { 140 141 private static final long serialVersionUID = 1L; 142 public <O extends Record> ShippingMethodDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails> parentPath) { 143 super(path, childPath, parentPath); 144 } 145 private ShippingMethodDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails> aliased) { 146 super(alias, aliased); 147 } 148 149 @Override 150 public ShippingMethodDetailsPath as(String alias) { 151 return new ShippingMethodDetailsPath(DSL.name(alias), this); 152 } 153 154 @Override 155 public ShippingMethodDetailsPath as(Name alias) { 156 return new ShippingMethodDetailsPath(alias, this); 157 } 158 159 @Override 160 public ShippingMethodDetailsPath as(Table<?> alias) { 161 return new ShippingMethodDetailsPath(alias.getQualifiedName(), this); 162 } 163 } 164 165 @Override 166 public UniqueKey<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails> getPrimaryKey() { 167 return KeyRegistry.SHIPPING_METHOD_DETAILS_PK; 168 } 169 170 @Override 171 public List<UniqueKey<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails>> getUniqueKeys() { 172 return Arrays.asList(KeyRegistry.SHIPPING_METHOD_DETAILS_SHIPPING_METHOD_AND_THRU_TIME_UK, KeyRegistry.SHIPPING_METHOD_DETAILS_SHIPPING_METHOD_NAME_AND_THRU_TIME_UK); 173 } 174 175 @Override 176 public List<ForeignKey<com.echothree.model.jooq.server.records.shipping.ShippingMethodDetails, ?>> getReferences() { 177 return Arrays.asList(KeyRegistry.SHIPPING_METHOD_DETAILS_GEO_CODE_SELECTOR_FK, KeyRegistry.SHIPPING_METHOD_DETAILS_ITEM_SELECTOR_FK, KeyRegistry.SHIPPING_METHOD_DETAILS_SHIPPING_METHOD_FK); 178 } 179 180 private transient SelectorsPath _shmdt_geocodeselectorid_fk; 181 182 /** 183 * Get the implicit join path to the <code>selectors</code> table, via the 184 * <code>shmdt_geocodeselectorid_fk</code> key. 185 */ 186 public SelectorsPath shmdt_geocodeselectorid_fk() { 187 if (_shmdt_geocodeselectorid_fk == null) 188 _shmdt_geocodeselectorid_fk = new SelectorsPath(this, KeyRegistry.SHIPPING_METHOD_DETAILS_GEO_CODE_SELECTOR_FK, null); 189 190 return _shmdt_geocodeselectorid_fk; 191 } 192 193 private transient SelectorsPath _shmdt_itemselectorid_fk; 194 195 /** 196 * Get the implicit join path to the <code>selectors</code> table, via the 197 * <code>shmdt_itemselectorid_fk</code> key. 198 */ 199 public SelectorsPath shmdt_itemselectorid_fk() { 200 if (_shmdt_itemselectorid_fk == null) 201 _shmdt_itemselectorid_fk = new SelectorsPath(this, KeyRegistry.SHIPPING_METHOD_DETAILS_ITEM_SELECTOR_FK, null); 202 203 return _shmdt_itemselectorid_fk; 204 } 205 206 private transient ShippingMethodsPath _shmdt_shm_shippingmethodid_fk; 207 208 /** 209 * Get the implicit join path to the <code>shippingmethods</code> table. 210 */ 211 public ShippingMethodsPath shmdt_shm_shippingmethodid_fk() { 212 if (_shmdt_shm_shippingmethodid_fk == null) 213 _shmdt_shm_shippingmethodid_fk = new ShippingMethodsPath(this, KeyRegistry.SHIPPING_METHOD_DETAILS_SHIPPING_METHOD_FK, null); 214 215 return _shmdt_shm_shippingmethodid_fk; 216 } 217 218 @Override 219 public ShippingMethodDetails as(String alias) { 220 return new ShippingMethodDetails(DSL.name(alias), this); 221 } 222 223 @Override 224 public ShippingMethodDetails as(Name alias) { 225 return new ShippingMethodDetails(alias, this); 226 } 227 228 @Override 229 public ShippingMethodDetails as(Table<?> alias) { 230 return new ShippingMethodDetails(alias.getQualifiedName(), this); 231 } 232 233 /** 234 * Rename this table 235 */ 236 @Override 237 public ShippingMethodDetails rename(String name) { 238 return new ShippingMethodDetails(DSL.name(name), null); 239 } 240 241 /** 242 * Rename this table 243 */ 244 @Override 245 public ShippingMethodDetails rename(Name name) { 246 return new ShippingMethodDetails(name, null); 247 } 248 249 /** 250 * Rename this table 251 */ 252 @Override 253 public ShippingMethodDetails rename(Table<?> name) { 254 return new ShippingMethodDetails(name.getQualifiedName(), null); 255 } 256 257 /** 258 * Create an inline derived table from this table 259 */ 260 @Override 261 public ShippingMethodDetails where(Condition condition) { 262 return new ShippingMethodDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 263 } 264 265 /** 266 * Create an inline derived table from this table 267 */ 268 @Override 269 public ShippingMethodDetails where(Collection<? extends Condition> conditions) { 270 return where(DSL.and(conditions)); 271 } 272 273 /** 274 * Create an inline derived table from this table 275 */ 276 @Override 277 public ShippingMethodDetails where(Condition... conditions) { 278 return where(DSL.and(conditions)); 279 } 280 281 /** 282 * Create an inline derived table from this table 283 */ 284 @Override 285 public ShippingMethodDetails where(Field<Boolean> condition) { 286 return where(DSL.condition(condition)); 287 } 288 289 /** 290 * Create an inline derived table from this table 291 */ 292 @Override 293 @PlainSQL 294 public ShippingMethodDetails where(SQL condition) { 295 return where(DSL.condition(condition)); 296 } 297 298 /** 299 * Create an inline derived table from this table 300 */ 301 @Override 302 @PlainSQL 303 public ShippingMethodDetails where(@Stringly.SQL String condition) { 304 return where(DSL.condition(condition)); 305 } 306 307 /** 308 * Create an inline derived table from this table 309 */ 310 @Override 311 @PlainSQL 312 public ShippingMethodDetails where(@Stringly.SQL String condition, Object... binds) { 313 return where(DSL.condition(condition, binds)); 314 } 315 316 /** 317 * Create an inline derived table from this table 318 */ 319 @Override 320 @PlainSQL 321 public ShippingMethodDetails where(@Stringly.SQL String condition, QueryPart... parts) { 322 return where(DSL.condition(condition, parts)); 323 } 324 325 /** 326 * Create an inline derived table from this table 327 */ 328 @Override 329 public ShippingMethodDetails whereExists(TableLike<?> select) { 330 return where(DSL.exists(select)); 331 } 332 333 /** 334 * Create an inline derived table from this table 335 */ 336 @Override 337 public ShippingMethodDetails whereNotExists(TableLike<?> select) { 338 return where(DSL.notExists(select)); 339 } 340}