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.InventoryTransactionRolePK; 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.InventoryTransactionRoleTypes.InventoryTransactionRoleTypesPath; 013import com.echothree.model.jooq.server.tables.inventory.InventoryTransactions.InventoryTransactionsPath; 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 InventoryTransactionRoles extends TableImpl<com.echothree.model.jooq.server.records.inventory.InventoryTransactionRoles> { 045 046 private static final long serialVersionUID = 1L; 047 048 /** 049 * The reference instance of <code>inventorytransactionroles</code> 050 */ 051 public static final InventoryTransactionRoles InventoryTransactionRoles = new InventoryTransactionRoles(); 052 053 /** 054 * The class holding records for this type 055 */ 056 @Override 057 public Class<com.echothree.model.jooq.server.records.inventory.InventoryTransactionRoles> getRecordType() { 058 return com.echothree.model.jooq.server.records.inventory.InventoryTransactionRoles.class; 059 } 060 061 /** 062 * The column 063 * <code>inventorytransactionroles.invtrxr_inventorytransactionroleid</code>. 064 */ 065 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryTransactionRoles, InventoryTransactionRolePK> INVENTORY_TRANSACTION_ROLE = createField(DSL.name("invtrxr_inventorytransactionroleid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, InventoryTransactionRolePK.class, id -> new com.echothree.model.data.inventory.common.pk.InventoryTransactionRolePK(id), primaryKey -> primaryKey.getEntityId())); 066 067 /** 068 * The column 069 * <code>inventorytransactionroles.invtrxr_invtrx_inventorytransactionid</code>. 070 */ 071 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryTransactionRoles, InventoryTransactionPK> INVENTORY_TRANSACTION = createField(DSL.name("invtrxr_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())); 072 073 /** 074 * The column 075 * <code>inventorytransactionroles.invtrxr_invtrxrtyp_inventorytransactionroletypeid</code>. 076 */ 077 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryTransactionRoles, InventoryTransactionRoleTypePK> INVENTORY_TRANSACTION_ROLE_TYPE = createField(DSL.name("invtrxr_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 <code>inventorytransactionroles.invtrxr_par_partyid</code>. 081 */ 082 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryTransactionRoles, PartyPK> PARTY = createField(DSL.name("invtrxr_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())); 083 084 /** 085 * The column <code>inventorytransactionroles.invtrxr_fromtime</code>. 086 */ 087 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryTransactionRoles, Long> FROM_TIME = createField(DSL.name("invtrxr_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 088 089 /** 090 * The column <code>inventorytransactionroles.invtrxr_thrutime</code>. 091 */ 092 public final TableField<com.echothree.model.jooq.server.records.inventory.InventoryTransactionRoles, Long> THRU_TIME = createField(DSL.name("invtrxr_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 093 094 private InventoryTransactionRoles(Name alias, Table<com.echothree.model.jooq.server.records.inventory.InventoryTransactionRoles> aliased) { 095 this(alias, aliased, (Field<?>[]) null, null); 096 } 097 098 private InventoryTransactionRoles(Name alias, Table<com.echothree.model.jooq.server.records.inventory.InventoryTransactionRoles> aliased, Field<?>[] parameters, Condition where) { 099 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 100 } 101 102 /** 103 * Create an aliased <code>inventorytransactionroles</code> table reference 104 */ 105 public InventoryTransactionRoles(String alias) { 106 this(DSL.name(alias), InventoryTransactionRoles); 107 } 108 109 /** 110 * Create an aliased <code>inventorytransactionroles</code> table reference 111 */ 112 public InventoryTransactionRoles(Name alias) { 113 this(alias, InventoryTransactionRoles); 114 } 115 116 /** 117 * Create a <code>inventorytransactionroles</code> table reference 118 */ 119 public InventoryTransactionRoles() { 120 this(DSL.name("inventorytransactionroles"), null); 121 } 122 123 @Override 124 public UniqueKey<com.echothree.model.jooq.server.records.inventory.InventoryTransactionRoles> getPrimaryKey() { 125 return KeyRegistry.INVENTORY_TRANSACTION_ROLES_PK; 126 } 127 128 @Override 129 public List<UniqueKey<com.echothree.model.jooq.server.records.inventory.InventoryTransactionRoles>> getUniqueKeys() { 130 return Arrays.asList(KeyRegistry.INVENTORY_TRANSACTION_ROLES_INVENTORY_TRANSACTION_AND_INVENTORY_TRANSACTION_ROLE_TYPE_AND_THRU_TIME_UK); 131 } 132 133 @Override 134 public List<ForeignKey<com.echothree.model.jooq.server.records.inventory.InventoryTransactionRoles, ?>> getReferences() { 135 return Arrays.asList(KeyRegistry.INVENTORY_TRANSACTION_ROLES_INVENTORY_TRANSACTION_FK, KeyRegistry.INVENTORY_TRANSACTION_ROLES_INVENTORY_TRANSACTION_ROLE_TYPE_FK, KeyRegistry.INVENTORY_TRANSACTION_ROLES_PARTY_FK); 136 } 137 138 private transient InventoryTransactionsPath _invtrxr_invtrx_inventorytransactionid_fk; 139 140 /** 141 * Get the implicit join path to the <code>inventorytransactions</code> 142 * table. 143 */ 144 public InventoryTransactionsPath invtrxr_invtrx_inventorytransactionid_fk() { 145 if (_invtrxr_invtrx_inventorytransactionid_fk == null) 146 _invtrxr_invtrx_inventorytransactionid_fk = new InventoryTransactionsPath(this, KeyRegistry.INVENTORY_TRANSACTION_ROLES_INVENTORY_TRANSACTION_FK, null); 147 148 return _invtrxr_invtrx_inventorytransactionid_fk; 149 } 150 151 private transient InventoryTransactionRoleTypesPath _invtrxr_invtrxrtyp_inventorytransactionroletypeid_fk; 152 153 /** 154 * Get the implicit join path to the 155 * <code>inventorytransactionroletypes</code> table. 156 */ 157 public InventoryTransactionRoleTypesPath invtrxr_invtrxrtyp_inventorytransactionroletypeid_fk() { 158 if (_invtrxr_invtrxrtyp_inventorytransactionroletypeid_fk == null) 159 _invtrxr_invtrxrtyp_inventorytransactionroletypeid_fk = new InventoryTransactionRoleTypesPath(this, KeyRegistry.INVENTORY_TRANSACTION_ROLES_INVENTORY_TRANSACTION_ROLE_TYPE_FK, null); 160 161 return _invtrxr_invtrxrtyp_inventorytransactionroletypeid_fk; 162 } 163 164 private transient PartiesPath _invtrxr_par_partyid_fk; 165 166 /** 167 * Get the implicit join path to the <code>parties</code> table. 168 */ 169 public PartiesPath invtrxr_par_partyid_fk() { 170 if (_invtrxr_par_partyid_fk == null) 171 _invtrxr_par_partyid_fk = new PartiesPath(this, KeyRegistry.INVENTORY_TRANSACTION_ROLES_PARTY_FK, null); 172 173 return _invtrxr_par_partyid_fk; 174 } 175 176 @Override 177 public InventoryTransactionRoles as(String alias) { 178 return new InventoryTransactionRoles(DSL.name(alias), this); 179 } 180 181 @Override 182 public InventoryTransactionRoles as(Name alias) { 183 return new InventoryTransactionRoles(alias, this); 184 } 185 186 @Override 187 public InventoryTransactionRoles as(Table<?> alias) { 188 return new InventoryTransactionRoles(alias.getQualifiedName(), this); 189 } 190 191 /** 192 * Rename this table 193 */ 194 @Override 195 public InventoryTransactionRoles rename(String name) { 196 return new InventoryTransactionRoles(DSL.name(name), null); 197 } 198 199 /** 200 * Rename this table 201 */ 202 @Override 203 public InventoryTransactionRoles rename(Name name) { 204 return new InventoryTransactionRoles(name, null); 205 } 206 207 /** 208 * Rename this table 209 */ 210 @Override 211 public InventoryTransactionRoles rename(Table<?> name) { 212 return new InventoryTransactionRoles(name.getQualifiedName(), null); 213 } 214 215 /** 216 * Create an inline derived table from this table 217 */ 218 @Override 219 public InventoryTransactionRoles where(Condition condition) { 220 return new InventoryTransactionRoles(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 221 } 222 223 /** 224 * Create an inline derived table from this table 225 */ 226 @Override 227 public InventoryTransactionRoles where(Collection<? extends Condition> conditions) { 228 return where(DSL.and(conditions)); 229 } 230 231 /** 232 * Create an inline derived table from this table 233 */ 234 @Override 235 public InventoryTransactionRoles where(Condition... conditions) { 236 return where(DSL.and(conditions)); 237 } 238 239 /** 240 * Create an inline derived table from this table 241 */ 242 @Override 243 public InventoryTransactionRoles where(Field<Boolean> condition) { 244 return where(DSL.condition(condition)); 245 } 246 247 /** 248 * Create an inline derived table from this table 249 */ 250 @Override 251 @PlainSQL 252 public InventoryTransactionRoles where(SQL condition) { 253 return where(DSL.condition(condition)); 254 } 255 256 /** 257 * Create an inline derived table from this table 258 */ 259 @Override 260 @PlainSQL 261 public InventoryTransactionRoles where(@Stringly.SQL String condition) { 262 return where(DSL.condition(condition)); 263 } 264 265 /** 266 * Create an inline derived table from this table 267 */ 268 @Override 269 @PlainSQL 270 public InventoryTransactionRoles where(@Stringly.SQL String condition, Object... binds) { 271 return where(DSL.condition(condition, binds)); 272 } 273 274 /** 275 * Create an inline derived table from this table 276 */ 277 @Override 278 @PlainSQL 279 public InventoryTransactionRoles where(@Stringly.SQL String condition, QueryPart... parts) { 280 return where(DSL.condition(condition, parts)); 281 } 282 283 /** 284 * Create an inline derived table from this table 285 */ 286 @Override 287 public InventoryTransactionRoles whereExists(TableLike<?> select) { 288 return where(DSL.exists(select)); 289 } 290 291 /** 292 * Create an inline derived table from this table 293 */ 294 @Override 295 public InventoryTransactionRoles whereNotExists(TableLike<?> select) { 296 return where(DSL.notExists(select)); 297 } 298}