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.InventoryTransactionLinePK; 008import com.echothree.model.data.inventory.common.pk.InventoryTransactionLineRolePK; 009import com.echothree.model.data.inventory.common.pk.InventoryTransactionRoleTypePK; 010import com.echothree.model.data.party.common.pk.PartyPK; 011import com.echothree.model.jooq.server.KeyRegistry; 012import com.echothree.model.jooq.server.tables.inventory.InventoryTransactionLines.InventoryTransactionLinesPath; 013import com.echothree.model.jooq.server.tables.inventory.InventoryTransactionRoleTypes.InventoryTransactionRoleTypesPath; 014import com.echothree.model.jooq.server.tables.party.Parties.PartiesPath; 015 016import java.util.Arrays; 017import java.util.Collection; 018import java.util.List; 019 020import org.jooq.Condition; 021import org.jooq.Converter; 022import org.jooq.Field; 023import org.jooq.ForeignKey; 024import org.jooq.Name; 025import org.jooq.PlainSQL; 026import org.jooq.QueryPart; 027import org.jooq.SQL; 028import org.jooq.Stringly; 029import org.jooq.Table; 030import org.jooq.TableField; 031import org.jooq.TableLike; 032import org.jooq.TableOptions; 033import org.jooq.UniqueKey; 034import org.jooq.impl.DSL; 035import org.jooq.impl.Internal; 036import org.jooq.impl.SQLDataType; 037import org.jooq.impl.TableImpl; 038 039 040/** 041 * This class is generated by jOOQ. 042 */ 043@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 044public class InventoryTransactionLineRoles extends TableImpl<com.echothree.model.jooq.server.records.inventory.InventoryTransactionLineRoles> { 045 046 private static final long serialVersionUID = 1L; 047 048 /** 049 * The reference instance of <code>inventorytransactionlineroles</code> 050 */ 051 public static final InventoryTransactionLineRoles InventoryTransactionLineRoles = new InventoryTransactionLineRoles(); 052 053 /** 054 * The class holding records for this type 055 */ 056 @Override 057 public Class<com.echothree.model.jooq.server.records.inventory.InventoryTransactionLineRoles> getRecordType() { 058 return com.echothree.model.jooq.server.records.inventory.InventoryTransactionLineRoles.class; 059 } 060 061 /** 062 * The column 063 * <code>inventorytransactionlineroles.invtrxlr_inventorytransactionlineroleid</code>. 064 */ 065 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryTransactionLineRoles, InventoryTransactionLineRolePK> INVENTORY_TRANSACTION_LINE_ROLE = createField(DSL.name("invtrxlr_inventorytransactionlineroleid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, InventoryTransactionLineRolePK.class, id -> new com.echothree.model.data.inventory.common.pk.InventoryTransactionLineRolePK(id), primaryKey -> primaryKey.getEntityId())); 066 067 /** 068 * The column 069 * <code>inventorytransactionlineroles.invtrxlr_invtrxl_inventorytransactionlineid</code>. 070 */ 071 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryTransactionLineRoles, InventoryTransactionLinePK> INVENTORY_TRANSACTION_LINE = createField(DSL.name("invtrxlr_invtrxl_inventorytransactionlineid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, InventoryTransactionLinePK.class, id -> new com.echothree.model.data.inventory.common.pk.InventoryTransactionLinePK(id), primaryKey -> primaryKey.getEntityId())); 072 073 /** 074 * The column 075 * <code>inventorytransactionlineroles.invtrxlr_invtrxrtyp_inventorytransactionroletypeid</code>. 076 */ 077 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryTransactionLineRoles, InventoryTransactionRoleTypePK> INVENTORY_TRANSACTION_ROLE_TYPE = createField(DSL.name("invtrxlr_invtrxrtyp_inventorytransactionroletypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, InventoryTransactionRoleTypePK.class, id -> new com.echothree.model.data.inventory.common.pk.InventoryTransactionRoleTypePK(id), primaryKey -> primaryKey.getEntityId())); 078 079 /** 080 * The column 081 * <code>inventorytransactionlineroles.invtrxlr_par_partyid</code>. 082 */ 083 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryTransactionLineRoles, PartyPK> PARTY = createField(DSL.name("invtrxlr_par_partyid"), 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())); 084 085 /** 086 * The column <code>inventorytransactionlineroles.invtrxlr_fromtime</code>. 087 */ 088 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryTransactionLineRoles, Long> FROM_TIME = createField(DSL.name("invtrxlr_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 089 090 /** 091 * The column <code>inventorytransactionlineroles.invtrxlr_thrutime</code>. 092 */ 093 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryTransactionLineRoles, Long> THRU_TIME = createField(DSL.name("invtrxlr_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 094 095 private InventoryTransactionLineRoles(Name alias, Table<com.echothree.model.jooq.server.records.inventory.InventoryTransactionLineRoles> aliased) { 096 this(alias, aliased, (Field<?>[]) null, null); 097 } 098 099 private InventoryTransactionLineRoles(Name alias, Table<com.echothree.model.jooq.server.records.inventory.InventoryTransactionLineRoles> aliased, Field<?>[] parameters, Condition where) { 100 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 101 } 102 103 /** 104 * Create an aliased <code>inventorytransactionlineroles</code> table 105 * reference 106 */ 107 public InventoryTransactionLineRoles(String alias) { 108 this(DSL.name(alias), InventoryTransactionLineRoles); 109 } 110 111 /** 112 * Create an aliased <code>inventorytransactionlineroles</code> table 113 * reference 114 */ 115 public InventoryTransactionLineRoles(Name alias) { 116 this(alias, InventoryTransactionLineRoles); 117 } 118 119 /** 120 * Create a <code>inventorytransactionlineroles</code> table reference 121 */ 122 public InventoryTransactionLineRoles() { 123 this(DSL.name("inventorytransactionlineroles"), null); 124 } 125 126 @Override 127 public UniqueKey<com.echothree.model.jooq.server.records.inventory.InventoryTransactionLineRoles> getPrimaryKey() { 128 return KeyRegistry.INVENTORY_TRANSACTION_LINE_ROLES_PK; 129 } 130 131 @Override 132 public List<UniqueKey<com.echothree.model.jooq.server.records.inventory.InventoryTransactionLineRoles>> getUniqueKeys() { 133 return Arrays.asList(KeyRegistry.INVENTORY_TRANSACTION_LINE_ROLES_INVENTORY_TRANSACTION_LINE_AND_INVENTORY_TRANSACTION_ROLE_TYPE_AND_THRU_TIME_UK); 134 } 135 136 @Override 137 public List<ForeignKey<com.echothree.model.jooq.server.records.inventory.InventoryTransactionLineRoles, ?>> getReferences() { 138 return Arrays.asList(KeyRegistry.INVENTORY_TRANSACTION_LINE_ROLES_INVENTORY_TRANSACTION_LINE_FK, KeyRegistry.INVENTORY_TRANSACTION_LINE_ROLES_INVENTORY_TRANSACTION_ROLE_TYPE_FK, KeyRegistry.INVENTORY_TRANSACTION_LINE_ROLES_PARTY_FK); 139 } 140 141 private transient InventoryTransactionLinesPath _invtrxlr_invtrxl_inventorytransactionlineid_fk; 142 143 /** 144 * Get the implicit join path to the <code>inventorytransactionlines</code> 145 * table. 146 */ 147 public InventoryTransactionLinesPath invtrxlr_invtrxl_inventorytransactionlineid_fk() { 148 if (_invtrxlr_invtrxl_inventorytransactionlineid_fk == null) 149 _invtrxlr_invtrxl_inventorytransactionlineid_fk = new InventoryTransactionLinesPath(this, KeyRegistry.INVENTORY_TRANSACTION_LINE_ROLES_INVENTORY_TRANSACTION_LINE_FK, null); 150 151 return _invtrxlr_invtrxl_inventorytransactionlineid_fk; 152 } 153 154 private transient InventoryTransactionRoleTypesPath _invtrxlr_invtrxrtyp_inventorytransactionroletypeid_fk; 155 156 /** 157 * Get the implicit join path to the 158 * <code>inventorytransactionroletypes</code> table. 159 */ 160 public InventoryTransactionRoleTypesPath invtrxlr_invtrxrtyp_inventorytransactionroletypeid_fk() { 161 if (_invtrxlr_invtrxrtyp_inventorytransactionroletypeid_fk == null) 162 _invtrxlr_invtrxrtyp_inventorytransactionroletypeid_fk = new InventoryTransactionRoleTypesPath(this, KeyRegistry.INVENTORY_TRANSACTION_LINE_ROLES_INVENTORY_TRANSACTION_ROLE_TYPE_FK, null); 163 164 return _invtrxlr_invtrxrtyp_inventorytransactionroletypeid_fk; 165 } 166 167 private transient PartiesPath _invtrxlr_par_partyid_fk; 168 169 /** 170 * Get the implicit join path to the <code>parties</code> table. 171 */ 172 public PartiesPath invtrxlr_par_partyid_fk() { 173 if (_invtrxlr_par_partyid_fk == null) 174 _invtrxlr_par_partyid_fk = new PartiesPath(this, KeyRegistry.INVENTORY_TRANSACTION_LINE_ROLES_PARTY_FK, null); 175 176 return _invtrxlr_par_partyid_fk; 177 } 178 179 @Override 180 public InventoryTransactionLineRoles as(String alias) { 181 return new InventoryTransactionLineRoles(DSL.name(alias), this); 182 } 183 184 @Override 185 public InventoryTransactionLineRoles as(Name alias) { 186 return new InventoryTransactionLineRoles(alias, this); 187 } 188 189 @Override 190 public InventoryTransactionLineRoles as(Table<?> alias) { 191 return new InventoryTransactionLineRoles(alias.getQualifiedName(), this); 192 } 193 194 /** 195 * Rename this table 196 */ 197 @Override 198 public InventoryTransactionLineRoles rename(String name) { 199 return new InventoryTransactionLineRoles(DSL.name(name), null); 200 } 201 202 /** 203 * Rename this table 204 */ 205 @Override 206 public InventoryTransactionLineRoles rename(Name name) { 207 return new InventoryTransactionLineRoles(name, null); 208 } 209 210 /** 211 * Rename this table 212 */ 213 @Override 214 public InventoryTransactionLineRoles rename(Table<?> name) { 215 return new InventoryTransactionLineRoles(name.getQualifiedName(), null); 216 } 217 218 /** 219 * Create an inline derived table from this table 220 */ 221 @Override 222 public InventoryTransactionLineRoles where(Condition condition) { 223 return new InventoryTransactionLineRoles(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 InventoryTransactionLineRoles 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 InventoryTransactionLineRoles 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 InventoryTransactionLineRoles 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 InventoryTransactionLineRoles 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 InventoryTransactionLineRoles 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 InventoryTransactionLineRoles 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 InventoryTransactionLineRoles 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 InventoryTransactionLineRoles 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 InventoryTransactionLineRoles whereNotExists(TableLike<?> select) { 299 return where(DSL.notExists(select)); 300 } 301}