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