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