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