001/* 002 * This file is generated by jOOQ. 003 */ 004package com.echothree.model.jooq.server.tables.user; 005 006 007import com.echothree.model.data.party.common.pk.PartyPK; 008import com.echothree.model.data.party.common.pk.PartyRelationshipPK; 009import com.echothree.model.data.user.common.pk.UserKeyDetailPK; 010import com.echothree.model.data.user.common.pk.UserKeyPK; 011import com.echothree.model.jooq.server.KeyRegistry; 012import com.echothree.model.jooq.server.tables.party.Parties.PartiesPath; 013import com.echothree.model.jooq.server.tables.party.PartyRelationships.PartyRelationshipsPath; 014import com.echothree.model.jooq.server.tables.user.UserKeys.UserKeysPath; 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.InverseForeignKey; 025import org.jooq.Name; 026import org.jooq.Path; 027import org.jooq.PlainSQL; 028import org.jooq.QueryPart; 029import org.jooq.Record; 030import org.jooq.SQL; 031import org.jooq.Stringly; 032import org.jooq.Table; 033import org.jooq.TableField; 034import org.jooq.TableLike; 035import org.jooq.TableOptions; 036import org.jooq.UniqueKey; 037import org.jooq.impl.DSL; 038import org.jooq.impl.Internal; 039import org.jooq.impl.SQLDataType; 040import org.jooq.impl.TableImpl; 041 042 043/** 044 * This class is generated by jOOQ. 045 */ 046@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 047public class UserKeyDetails extends TableImpl<com.echothree.model.jooq.server.records.user.UserKeyDetails> { 048 049 private static final long serialVersionUID = 1L; 050 051 /** 052 * The reference instance of <code>userkeydetails</code> 053 */ 054 public static final UserKeyDetails UserKeyDetails = new UserKeyDetails(); 055 056 /** 057 * The class holding records for this type 058 */ 059 @Override 060 public Class<com.echothree.model.jooq.server.records.user.UserKeyDetails> getRecordType() { 061 return com.echothree.model.jooq.server.records.user.UserKeyDetails.class; 062 } 063 064 /** 065 * The column <code>userkeydetails.ukeydt_userkeydetailid</code>. 066 */ 067 public final TableField<com.echothree.model.jooq.server.records.user.UserKeyDetails, UserKeyDetailPK> USER_KEY_DETAIL = createField(DSL.name("ukeydt_userkeydetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, UserKeyDetailPK.class, id -> new com.echothree.model.data.user.common.pk.UserKeyDetailPK(id), primaryKey -> primaryKey.getEntityId())); 068 069 /** 070 * The column <code>userkeydetails.ukeydt_ukey_userkeyid</code>. 071 */ 072 public final TableField<com.echothree.model.jooq.server.records.user.UserKeyDetails, UserKeyPK> USER_KEY = createField(DSL.name("ukeydt_ukey_userkeyid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, UserKeyPK.class, id -> new com.echothree.model.data.user.common.pk.UserKeyPK(id), primaryKey -> primaryKey.getEntityId())); 073 074 /** 075 * The column <code>userkeydetails.ukeydt_userkeyname</code>. 076 */ 077 public final TableField<com.echothree.model.jooq.server.records.user.UserKeyDetails, String> USER_KEY_NAME = createField(DSL.name("ukeydt_userkeyname"), SQLDataType.VARCHAR(40).nullable(false), this, ""); 078 079 /** 080 * The column <code>userkeydetails.ukeydt_par_partyid</code>. 081 */ 082 public final TableField<com.echothree.model.jooq.server.records.user.UserKeyDetails, PartyPK> PARTY = createField(DSL.name("ukeydt_par_partyid"), SQLDataType.BIGINT, 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>userkeydetails.ukeydt_prel_partyrelationshipid</code>. 086 */ 087 public final TableField<com.echothree.model.jooq.server.records.user.UserKeyDetails, PartyRelationshipPK> PARTY_RELATIONSHIP = createField(DSL.name("ukeydt_prel_partyrelationshipid"), SQLDataType.BIGINT, this, "", Converter.ofNullable(Long.class, PartyRelationshipPK.class, id -> new com.echothree.model.data.party.common.pk.PartyRelationshipPK(id), primaryKey -> primaryKey.getEntityId())); 088 089 /** 090 * The column <code>userkeydetails.ukeydt_fromtime</code>. 091 */ 092 public final TableField<com.echothree.model.jooq.server.records.user.UserKeyDetails, Long> FROM_TIME = createField(DSL.name("ukeydt_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 093 094 /** 095 * The column <code>userkeydetails.ukeydt_thrutime</code>. 096 */ 097 public final TableField<com.echothree.model.jooq.server.records.user.UserKeyDetails, Long> THRU_TIME = createField(DSL.name("ukeydt_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 098 099 private UserKeyDetails(Name alias, Table<com.echothree.model.jooq.server.records.user.UserKeyDetails> aliased) { 100 this(alias, aliased, (Field<?>[]) null, null); 101 } 102 103 private UserKeyDetails(Name alias, Table<com.echothree.model.jooq.server.records.user.UserKeyDetails> aliased, Field<?>[] parameters, Condition where) { 104 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 105 } 106 107 /** 108 * Create an aliased <code>userkeydetails</code> table reference 109 */ 110 public UserKeyDetails(String alias) { 111 this(DSL.name(alias), UserKeyDetails); 112 } 113 114 /** 115 * Create an aliased <code>userkeydetails</code> table reference 116 */ 117 public UserKeyDetails(Name alias) { 118 this(alias, UserKeyDetails); 119 } 120 121 /** 122 * Create a <code>userkeydetails</code> table reference 123 */ 124 public UserKeyDetails() { 125 this(DSL.name("userkeydetails"), null); 126 } 127 128 public <O extends Record> UserKeyDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.user.UserKeyDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.user.UserKeyDetails> parentPath) { 129 super(path, childPath, parentPath, UserKeyDetails); 130 } 131 132 /** 133 * A subtype implementing {@link Path} for simplified path-based joins. 134 */ 135 public static class UserKeyDetailsPath extends UserKeyDetails implements Path<com.echothree.model.jooq.server.records.user.UserKeyDetails> { 136 137 private static final long serialVersionUID = 1L; 138 public <O extends Record> UserKeyDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.user.UserKeyDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.user.UserKeyDetails> parentPath) { 139 super(path, childPath, parentPath); 140 } 141 private UserKeyDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.user.UserKeyDetails> aliased) { 142 super(alias, aliased); 143 } 144 145 @Override 146 public UserKeyDetailsPath as(String alias) { 147 return new UserKeyDetailsPath(DSL.name(alias), this); 148 } 149 150 @Override 151 public UserKeyDetailsPath as(Name alias) { 152 return new UserKeyDetailsPath(alias, this); 153 } 154 155 @Override 156 public UserKeyDetailsPath as(Table<?> alias) { 157 return new UserKeyDetailsPath(alias.getQualifiedName(), this); 158 } 159 } 160 161 @Override 162 public UniqueKey<com.echothree.model.jooq.server.records.user.UserKeyDetails> getPrimaryKey() { 163 return KeyRegistry.USER_KEY_DETAILS_PK; 164 } 165 166 @Override 167 public List<UniqueKey<com.echothree.model.jooq.server.records.user.UserKeyDetails>> getUniqueKeys() { 168 return Arrays.asList(KeyRegistry.USER_KEY_DETAILS_USER_KEY_AND_THRU_TIME_UK, KeyRegistry.USER_KEY_DETAILS_USER_KEY_NAME_AND_THRU_TIME_UK); 169 } 170 171 @Override 172 public List<ForeignKey<com.echothree.model.jooq.server.records.user.UserKeyDetails, ?>> getReferences() { 173 return Arrays.asList(KeyRegistry.USER_KEY_DETAILS_PARTY_FK, KeyRegistry.USER_KEY_DETAILS_PARTY_RELATIONSHIP_FK, KeyRegistry.USER_KEY_DETAILS_USER_KEY_FK); 174 } 175 176 private transient PartiesPath _ukeydt_par_partyid_fk; 177 178 /** 179 * Get the implicit join path to the <code>parties</code> table. 180 */ 181 public PartiesPath ukeydt_par_partyid_fk() { 182 if (_ukeydt_par_partyid_fk == null) 183 _ukeydt_par_partyid_fk = new PartiesPath(this, KeyRegistry.USER_KEY_DETAILS_PARTY_FK, null); 184 185 return _ukeydt_par_partyid_fk; 186 } 187 188 private transient PartyRelationshipsPath _ukeydt_prel_partyrelationshipid_fk; 189 190 /** 191 * Get the implicit join path to the <code>partyrelationships</code> table. 192 */ 193 public PartyRelationshipsPath ukeydt_prel_partyrelationshipid_fk() { 194 if (_ukeydt_prel_partyrelationshipid_fk == null) 195 _ukeydt_prel_partyrelationshipid_fk = new PartyRelationshipsPath(this, KeyRegistry.USER_KEY_DETAILS_PARTY_RELATIONSHIP_FK, null); 196 197 return _ukeydt_prel_partyrelationshipid_fk; 198 } 199 200 private transient UserKeysPath _ukeydt_ukey_userkeyid_fk; 201 202 /** 203 * Get the implicit join path to the <code>userkeys</code> table. 204 */ 205 public UserKeysPath ukeydt_ukey_userkeyid_fk() { 206 if (_ukeydt_ukey_userkeyid_fk == null) 207 _ukeydt_ukey_userkeyid_fk = new UserKeysPath(this, KeyRegistry.USER_KEY_DETAILS_USER_KEY_FK, null); 208 209 return _ukeydt_ukey_userkeyid_fk; 210 } 211 212 @Override 213 public UserKeyDetails as(String alias) { 214 return new UserKeyDetails(DSL.name(alias), this); 215 } 216 217 @Override 218 public UserKeyDetails as(Name alias) { 219 return new UserKeyDetails(alias, this); 220 } 221 222 @Override 223 public UserKeyDetails as(Table<?> alias) { 224 return new UserKeyDetails(alias.getQualifiedName(), this); 225 } 226 227 /** 228 * Rename this table 229 */ 230 @Override 231 public UserKeyDetails rename(String name) { 232 return new UserKeyDetails(DSL.name(name), null); 233 } 234 235 /** 236 * Rename this table 237 */ 238 @Override 239 public UserKeyDetails rename(Name name) { 240 return new UserKeyDetails(name, null); 241 } 242 243 /** 244 * Rename this table 245 */ 246 @Override 247 public UserKeyDetails rename(Table<?> name) { 248 return new UserKeyDetails(name.getQualifiedName(), null); 249 } 250 251 /** 252 * Create an inline derived table from this table 253 */ 254 @Override 255 public UserKeyDetails where(Condition condition) { 256 return new UserKeyDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 257 } 258 259 /** 260 * Create an inline derived table from this table 261 */ 262 @Override 263 public UserKeyDetails where(Collection<? extends Condition> conditions) { 264 return where(DSL.and(conditions)); 265 } 266 267 /** 268 * Create an inline derived table from this table 269 */ 270 @Override 271 public UserKeyDetails where(Condition... conditions) { 272 return where(DSL.and(conditions)); 273 } 274 275 /** 276 * Create an inline derived table from this table 277 */ 278 @Override 279 public UserKeyDetails where(Field<Boolean> 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 UserKeyDetails where(SQL 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 UserKeyDetails where(@Stringly.SQL String condition) { 298 return where(DSL.condition(condition)); 299 } 300 301 /** 302 * Create an inline derived table from this table 303 */ 304 @Override 305 @PlainSQL 306 public UserKeyDetails where(@Stringly.SQL String condition, Object... binds) { 307 return where(DSL.condition(condition, binds)); 308 } 309 310 /** 311 * Create an inline derived table from this table 312 */ 313 @Override 314 @PlainSQL 315 public UserKeyDetails where(@Stringly.SQL String condition, QueryPart... parts) { 316 return where(DSL.condition(condition, parts)); 317 } 318 319 /** 320 * Create an inline derived table from this table 321 */ 322 @Override 323 public UserKeyDetails whereExists(TableLike<?> select) { 324 return where(DSL.exists(select)); 325 } 326 327 /** 328 * Create an inline derived table from this table 329 */ 330 @Override 331 public UserKeyDetails whereNotExists(TableLike<?> select) { 332 return where(DSL.notExists(select)); 333 } 334}