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.ContactMechanismDetailPK; 008import com.echothree.model.data.contact.common.pk.ContactMechanismPK; 009import com.echothree.model.data.contact.common.pk.ContactMechanismTypePK; 010import com.echothree.model.jooq.server.KeyRegistry; 011import com.echothree.model.jooq.server.tables.contact.ContactMechanismTypes.ContactMechanismTypesPath; 012import com.echothree.model.jooq.server.tables.contact.ContactMechanisms.ContactMechanismsPath; 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.InverseForeignKey; 023import org.jooq.Name; 024import org.jooq.Path; 025import org.jooq.PlainSQL; 026import org.jooq.QueryPart; 027import org.jooq.Record; 028import org.jooq.SQL; 029import org.jooq.Stringly; 030import org.jooq.Table; 031import org.jooq.TableField; 032import org.jooq.TableLike; 033import org.jooq.TableOptions; 034import org.jooq.UniqueKey; 035import org.jooq.impl.DSL; 036import org.jooq.impl.Internal; 037import org.jooq.impl.SQLDataType; 038import org.jooq.impl.TableImpl; 039 040 041/** 042 * This class is generated by jOOQ. 043 */ 044@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 045public class ContactMechanismDetails extends TableImpl<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails> { 046 047 private static final long serialVersionUID = 1L; 048 049 /** 050 * The reference instance of <code>contactmechanismdetails</code> 051 */ 052 public static final ContactMechanismDetails ContactMechanismDetails = new ContactMechanismDetails(); 053 054 /** 055 * The class holding records for this type 056 */ 057 @Override 058 public Class<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails> getRecordType() { 059 return com.echothree.model.jooq.server.records.contact.ContactMechanismDetails.class; 060 } 061 062 /** 063 * The column 064 * <code>contactmechanismdetails.cmchdt_contactmechanismdetailid</code>. 065 */ 066 public final TableField<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails, ContactMechanismDetailPK> CONTACT_MECHANISM_DETAIL = createField(DSL.name("cmchdt_contactmechanismdetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContactMechanismDetailPK.class, id -> new com.echothree.model.data.contact.common.pk.ContactMechanismDetailPK(id), primaryKey -> primaryKey.getEntityId())); 067 068 /** 069 * The column 070 * <code>contactmechanismdetails.cmchdt_cmch_contactmechanismid</code>. 071 */ 072 public final TableField<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails, ContactMechanismPK> CONTACT_MECHANISM = createField(DSL.name("cmchdt_cmch_contactmechanismid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContactMechanismPK.class, id -> new com.echothree.model.data.contact.common.pk.ContactMechanismPK(id), primaryKey -> primaryKey.getEntityId())); 073 074 /** 075 * The column 076 * <code>contactmechanismdetails.cmchdt_contactmechanismname</code>. 077 */ 078 public final TableField<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails, String> CONTACT_MECHANISM_NAME = createField(DSL.name("cmchdt_contactmechanismname"), SQLDataType.VARCHAR(40).nullable(false), this, ""); 079 080 /** 081 * The column 082 * <code>contactmechanismdetails.cmchdt_cmt_contactmechanismtypeid</code>. 083 */ 084 public final TableField<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails, ContactMechanismTypePK> CONTACT_MECHANISM_TYPE = createField(DSL.name("cmchdt_cmt_contactmechanismtypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, ContactMechanismTypePK.class, id -> new com.echothree.model.data.contact.common.pk.ContactMechanismTypePK(id), primaryKey -> primaryKey.getEntityId())); 085 086 /** 087 * The column <code>contactmechanismdetails.cmchdt_allowsolicitation</code>. 088 */ 089 public final TableField<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails, Boolean> ALLOW_SOLICITATION = createField(DSL.name("cmchdt_allowsolicitation"), SQLDataType.BIT.nullable(false), this, ""); 090 091 /** 092 * The column <code>contactmechanismdetails.cmchdt_fromtime</code>. 093 */ 094 public final TableField<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails, Long> FROM_TIME = createField(DSL.name("cmchdt_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 095 096 /** 097 * The column <code>contactmechanismdetails.cmchdt_thrutime</code>. 098 */ 099 public final TableField<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails, Long> THRU_TIME = createField(DSL.name("cmchdt_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 100 101 private ContactMechanismDetails(Name alias, Table<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails> aliased) { 102 this(alias, aliased, (Field<?>[]) null, null); 103 } 104 105 private ContactMechanismDetails(Name alias, Table<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails> aliased, Field<?>[] parameters, Condition where) { 106 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 107 } 108 109 /** 110 * Create an aliased <code>contactmechanismdetails</code> table reference 111 */ 112 public ContactMechanismDetails(String alias) { 113 this(DSL.name(alias), ContactMechanismDetails); 114 } 115 116 /** 117 * Create an aliased <code>contactmechanismdetails</code> table reference 118 */ 119 public ContactMechanismDetails(Name alias) { 120 this(alias, ContactMechanismDetails); 121 } 122 123 /** 124 * Create a <code>contactmechanismdetails</code> table reference 125 */ 126 public ContactMechanismDetails() { 127 this(DSL.name("contactmechanismdetails"), null); 128 } 129 130 public <O extends Record> ContactMechanismDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.contact.ContactMechanismDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.contact.ContactMechanismDetails> parentPath) { 131 super(path, childPath, parentPath, ContactMechanismDetails); 132 } 133 134 /** 135 * A subtype implementing {@link Path} for simplified path-based joins. 136 */ 137 public static class ContactMechanismDetailsPath extends ContactMechanismDetails implements Path<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails> { 138 139 private static final long serialVersionUID = 1L; 140 public <O extends Record> ContactMechanismDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.contact.ContactMechanismDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.contact.ContactMechanismDetails> parentPath) { 141 super(path, childPath, parentPath); 142 } 143 private ContactMechanismDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails> aliased) { 144 super(alias, aliased); 145 } 146 147 @Override 148 public ContactMechanismDetailsPath as(String alias) { 149 return new ContactMechanismDetailsPath(DSL.name(alias), this); 150 } 151 152 @Override 153 public ContactMechanismDetailsPath as(Name alias) { 154 return new ContactMechanismDetailsPath(alias, this); 155 } 156 157 @Override 158 public ContactMechanismDetailsPath as(Table<?> alias) { 159 return new ContactMechanismDetailsPath(alias.getQualifiedName(), this); 160 } 161 } 162 163 @Override 164 public UniqueKey<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails> getPrimaryKey() { 165 return KeyRegistry.CONTACT_MECHANISM_DETAILS_PK; 166 } 167 168 @Override 169 public List<UniqueKey<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails>> getUniqueKeys() { 170 return Arrays.asList(KeyRegistry.CONTACT_MECHANISM_DETAILS_CONTACT_MECHANISM_AND_THRU_TIME_UK, KeyRegistry.CONTACT_MECHANISM_DETAILS_CONTACT_MECHANISM_NAME_AND_THRU_TIME_UK); 171 } 172 173 @Override 174 public List<ForeignKey<com.echothree.model.jooq.server.records.contact.ContactMechanismDetails, ?>> getReferences() { 175 return Arrays.asList(KeyRegistry.CONTACT_MECHANISM_DETAILS_CONTACT_MECHANISM_FK, KeyRegistry.CONTACT_MECHANISM_DETAILS_CONTACT_MECHANISM_TYPE_FK); 176 } 177 178 private transient ContactMechanismsPath _cmchdt_cmch_contactmechanismid_fk; 179 180 /** 181 * Get the implicit join path to the <code>contactmechanisms</code> table. 182 */ 183 public ContactMechanismsPath cmchdt_cmch_contactmechanismid_fk() { 184 if (_cmchdt_cmch_contactmechanismid_fk == null) 185 _cmchdt_cmch_contactmechanismid_fk = new ContactMechanismsPath(this, KeyRegistry.CONTACT_MECHANISM_DETAILS_CONTACT_MECHANISM_FK, null); 186 187 return _cmchdt_cmch_contactmechanismid_fk; 188 } 189 190 private transient ContactMechanismTypesPath _cmchdt_cmt_contactmechanismtypeid_fk; 191 192 /** 193 * Get the implicit join path to the <code>contactmechanismtypes</code> 194 * table. 195 */ 196 public ContactMechanismTypesPath cmchdt_cmt_contactmechanismtypeid_fk() { 197 if (_cmchdt_cmt_contactmechanismtypeid_fk == null) 198 _cmchdt_cmt_contactmechanismtypeid_fk = new ContactMechanismTypesPath(this, KeyRegistry.CONTACT_MECHANISM_DETAILS_CONTACT_MECHANISM_TYPE_FK, null); 199 200 return _cmchdt_cmt_contactmechanismtypeid_fk; 201 } 202 203 @Override 204 public ContactMechanismDetails as(String alias) { 205 return new ContactMechanismDetails(DSL.name(alias), this); 206 } 207 208 @Override 209 public ContactMechanismDetails as(Name alias) { 210 return new ContactMechanismDetails(alias, this); 211 } 212 213 @Override 214 public ContactMechanismDetails as(Table<?> alias) { 215 return new ContactMechanismDetails(alias.getQualifiedName(), this); 216 } 217 218 /** 219 * Rename this table 220 */ 221 @Override 222 public ContactMechanismDetails rename(String name) { 223 return new ContactMechanismDetails(DSL.name(name), null); 224 } 225 226 /** 227 * Rename this table 228 */ 229 @Override 230 public ContactMechanismDetails rename(Name name) { 231 return new ContactMechanismDetails(name, null); 232 } 233 234 /** 235 * Rename this table 236 */ 237 @Override 238 public ContactMechanismDetails rename(Table<?> name) { 239 return new ContactMechanismDetails(name.getQualifiedName(), null); 240 } 241 242 /** 243 * Create an inline derived table from this table 244 */ 245 @Override 246 public ContactMechanismDetails where(Condition condition) { 247 return new ContactMechanismDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 248 } 249 250 /** 251 * Create an inline derived table from this table 252 */ 253 @Override 254 public ContactMechanismDetails where(Collection<? extends Condition> conditions) { 255 return where(DSL.and(conditions)); 256 } 257 258 /** 259 * Create an inline derived table from this table 260 */ 261 @Override 262 public ContactMechanismDetails where(Condition... conditions) { 263 return where(DSL.and(conditions)); 264 } 265 266 /** 267 * Create an inline derived table from this table 268 */ 269 @Override 270 public ContactMechanismDetails where(Field<Boolean> condition) { 271 return where(DSL.condition(condition)); 272 } 273 274 /** 275 * Create an inline derived table from this table 276 */ 277 @Override 278 @PlainSQL 279 public ContactMechanismDetails where(SQL condition) { 280 return where(DSL.condition(condition)); 281 } 282 283 /** 284 * Create an inline derived table from this table 285 */ 286 @Override 287 @PlainSQL 288 public ContactMechanismDetails where(@Stringly.SQL String condition) { 289 return where(DSL.condition(condition)); 290 } 291 292 /** 293 * Create an inline derived table from this table 294 */ 295 @Override 296 @PlainSQL 297 public ContactMechanismDetails where(@Stringly.SQL String condition, Object... binds) { 298 return where(DSL.condition(condition, binds)); 299 } 300 301 /** 302 * Create an inline derived table from this table 303 */ 304 @Override 305 @PlainSQL 306 public ContactMechanismDetails where(@Stringly.SQL String condition, QueryPart... parts) { 307 return where(DSL.condition(condition, parts)); 308 } 309 310 /** 311 * Create an inline derived table from this table 312 */ 313 @Override 314 public ContactMechanismDetails whereExists(TableLike<?> select) { 315 return where(DSL.exists(select)); 316 } 317 318 /** 319 * Create an inline derived table from this table 320 */ 321 @Override 322 public ContactMechanismDetails whereNotExists(TableLike<?> select) { 323 return where(DSL.notExists(select)); 324 } 325}