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