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.PostalAddressFormatPK; 008import com.echothree.model.data.contact.common.pk.PostalAddressLineDetailPK; 009import com.echothree.model.data.contact.common.pk.PostalAddressLinePK; 010import com.echothree.model.jooq.server.KeyRegistry; 011import com.echothree.model.jooq.server.tables.contact.PostalAddressFormats.PostalAddressFormatsPath; 012import com.echothree.model.jooq.server.tables.contact.PostalAddressLines.PostalAddressLinesPath; 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 PostalAddressLineDetails extends TableImpl<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails> { 046 047 private static final long serialVersionUID = 1L; 048 049 /** 050 * The reference instance of <code>postaladdresslinedetails</code> 051 */ 052 public static final PostalAddressLineDetails PostalAddressLineDetails = new PostalAddressLineDetails(); 053 054 /** 055 * The class holding records for this type 056 */ 057 @Override 058 public Class<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails> getRecordType() { 059 return com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails.class; 060 } 061 062 /** 063 * The column 064 * <code>postaladdresslinedetails.pstaldt_postaladdresslinedetailid</code>. 065 */ 066 public final TableField<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails, PostalAddressLineDetailPK> POSTAL_ADDRESS_LINE_DETAIL = createField(DSL.name("pstaldt_postaladdresslinedetailid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PostalAddressLineDetailPK.class, id -> new com.echothree.model.data.contact.common.pk.PostalAddressLineDetailPK(id), primaryKey -> primaryKey.getEntityId())); 067 068 /** 069 * The column 070 * <code>postaladdresslinedetails.pstaldt_pstal_postaladdresslineid</code>. 071 */ 072 public final TableField<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails, PostalAddressLinePK> POSTAL_ADDRESS_LINE = createField(DSL.name("pstaldt_pstal_postaladdresslineid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PostalAddressLinePK.class, id -> new com.echothree.model.data.contact.common.pk.PostalAddressLinePK(id), primaryKey -> primaryKey.getEntityId())); 073 074 /** 075 * The column 076 * <code>postaladdresslinedetails.pstaldt_pstafmt_postaladdressformatid</code>. 077 */ 078 public final TableField<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails, PostalAddressFormatPK> POSTAL_ADDRESS_FORMAT = createField(DSL.name("pstaldt_pstafmt_postaladdressformatid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, PostalAddressFormatPK.class, id -> new com.echothree.model.data.contact.common.pk.PostalAddressFormatPK(id), primaryKey -> primaryKey.getEntityId())); 079 080 /** 081 * The column 082 * <code>postaladdresslinedetails.pstaldt_postaladdresslinesortorder</code>. 083 */ 084 public final TableField<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails, Integer> POSTAL_ADDRESS_LINE_SORT_ORDER = createField(DSL.name("pstaldt_postaladdresslinesortorder"), SQLDataType.INTEGER.nullable(false), this, ""); 085 086 /** 087 * The column <code>postaladdresslinedetails.pstaldt_prefix</code>. 088 */ 089 public final TableField<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails, String> PREFIX = createField(DSL.name("pstaldt_prefix"), SQLDataType.VARCHAR(10), this, ""); 090 091 /** 092 * The column 093 * <code>postaladdresslinedetails.pstaldt_alwaysincludeprefix</code>. 094 */ 095 public final TableField<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails, Boolean> ALWAYS_INCLUDE_PREFIX = createField(DSL.name("pstaldt_alwaysincludeprefix"), SQLDataType.BIT.nullable(false), this, ""); 096 097 /** 098 * The column <code>postaladdresslinedetails.pstaldt_suffix</code>. 099 */ 100 public final TableField<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails, String> SUFFIX = createField(DSL.name("pstaldt_suffix"), SQLDataType.VARCHAR(10), this, ""); 101 102 /** 103 * The column 104 * <code>postaladdresslinedetails.pstaldt_alwaysincludesuffix</code>. 105 */ 106 public final TableField<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails, Boolean> ALWAYS_INCLUDE_SUFFIX = createField(DSL.name("pstaldt_alwaysincludesuffix"), SQLDataType.BIT.nullable(false), this, ""); 107 108 /** 109 * The column <code>postaladdresslinedetails.pstaldt_collapseifempty</code>. 110 */ 111 public final TableField<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails, Boolean> COLLAPSE_IF_EMPTY = createField(DSL.name("pstaldt_collapseifempty"), SQLDataType.BIT.nullable(false), this, ""); 112 113 /** 114 * The column <code>postaladdresslinedetails.pstaldt_fromtime</code>. 115 */ 116 public final TableField<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails, Long> FROM_TIME = createField(DSL.name("pstaldt_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 117 118 /** 119 * The column <code>postaladdresslinedetails.pstaldt_thrutime</code>. 120 */ 121 public final TableField<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails, Long> THRU_TIME = createField(DSL.name("pstaldt_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 122 123 private PostalAddressLineDetails(Name alias, Table<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails> aliased) { 124 this(alias, aliased, (Field<?>[]) null, null); 125 } 126 127 private PostalAddressLineDetails(Name alias, Table<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails> aliased, Field<?>[] parameters, Condition where) { 128 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 129 } 130 131 /** 132 * Create an aliased <code>postaladdresslinedetails</code> table reference 133 */ 134 public PostalAddressLineDetails(String alias) { 135 this(DSL.name(alias), PostalAddressLineDetails); 136 } 137 138 /** 139 * Create an aliased <code>postaladdresslinedetails</code> table reference 140 */ 141 public PostalAddressLineDetails(Name alias) { 142 this(alias, PostalAddressLineDetails); 143 } 144 145 /** 146 * Create a <code>postaladdresslinedetails</code> table reference 147 */ 148 public PostalAddressLineDetails() { 149 this(DSL.name("postaladdresslinedetails"), null); 150 } 151 152 public <O extends Record> PostalAddressLineDetails(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails> parentPath) { 153 super(path, childPath, parentPath, PostalAddressLineDetails); 154 } 155 156 /** 157 * A subtype implementing {@link Path} for simplified path-based joins. 158 */ 159 public static class PostalAddressLineDetailsPath extends PostalAddressLineDetails implements Path<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails> { 160 161 private static final long serialVersionUID = 1L; 162 public <O extends Record> PostalAddressLineDetailsPath(Table<O> path, ForeignKey<O, com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails> childPath, InverseForeignKey<O, com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails> parentPath) { 163 super(path, childPath, parentPath); 164 } 165 private PostalAddressLineDetailsPath(Name alias, Table<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails> aliased) { 166 super(alias, aliased); 167 } 168 169 @Override 170 public PostalAddressLineDetailsPath as(String alias) { 171 return new PostalAddressLineDetailsPath(DSL.name(alias), this); 172 } 173 174 @Override 175 public PostalAddressLineDetailsPath as(Name alias) { 176 return new PostalAddressLineDetailsPath(alias, this); 177 } 178 179 @Override 180 public PostalAddressLineDetailsPath as(Table<?> alias) { 181 return new PostalAddressLineDetailsPath(alias.getQualifiedName(), this); 182 } 183 } 184 185 @Override 186 public UniqueKey<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails> getPrimaryKey() { 187 return KeyRegistry.POSTAL_ADDRESS_LINE_DETAILS_PK; 188 } 189 190 @Override 191 public List<UniqueKey<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails>> getUniqueKeys() { 192 return Arrays.asList(KeyRegistry.POSTAL_ADDRESS_LINE_DETAILS_POSTAL_ADDRESS_LINE_AND_THRU_TIME_UK, KeyRegistry.POSTAL_ADDRESS_LINE_DETAILS_POSTAL_ADDRESS_FORMAT_AND_POSTAL_ADDRESS_LINE_SORT_ORDER_AND_THRU_TIME_UK); 193 } 194 195 @Override 196 public List<ForeignKey<com.echothree.model.jooq.server.records.contact.PostalAddressLineDetails, ?>> getReferences() { 197 return Arrays.asList(KeyRegistry.POSTAL_ADDRESS_LINE_DETAILS_POSTAL_ADDRESS_FORMAT_FK, KeyRegistry.POSTAL_ADDRESS_LINE_DETAILS_POSTAL_ADDRESS_LINE_FK); 198 } 199 200 private transient PostalAddressFormatsPath _pstaldt_pstafmt_postaladdressformatid_fk; 201 202 /** 203 * Get the implicit join path to the <code>postaladdressformats</code> 204 * table. 205 */ 206 public PostalAddressFormatsPath pstaldt_pstafmt_postaladdressformatid_fk() { 207 if (_pstaldt_pstafmt_postaladdressformatid_fk == null) 208 _pstaldt_pstafmt_postaladdressformatid_fk = new PostalAddressFormatsPath(this, KeyRegistry.POSTAL_ADDRESS_LINE_DETAILS_POSTAL_ADDRESS_FORMAT_FK, null); 209 210 return _pstaldt_pstafmt_postaladdressformatid_fk; 211 } 212 213 private transient PostalAddressLinesPath _pstaldt_pstal_postaladdresslineid_fk; 214 215 /** 216 * Get the implicit join path to the <code>postaladdresslines</code> table. 217 */ 218 public PostalAddressLinesPath pstaldt_pstal_postaladdresslineid_fk() { 219 if (_pstaldt_pstal_postaladdresslineid_fk == null) 220 _pstaldt_pstal_postaladdresslineid_fk = new PostalAddressLinesPath(this, KeyRegistry.POSTAL_ADDRESS_LINE_DETAILS_POSTAL_ADDRESS_LINE_FK, null); 221 222 return _pstaldt_pstal_postaladdresslineid_fk; 223 } 224 225 @Override 226 public PostalAddressLineDetails as(String alias) { 227 return new PostalAddressLineDetails(DSL.name(alias), this); 228 } 229 230 @Override 231 public PostalAddressLineDetails as(Name alias) { 232 return new PostalAddressLineDetails(alias, this); 233 } 234 235 @Override 236 public PostalAddressLineDetails as(Table<?> alias) { 237 return new PostalAddressLineDetails(alias.getQualifiedName(), this); 238 } 239 240 /** 241 * Rename this table 242 */ 243 @Override 244 public PostalAddressLineDetails rename(String name) { 245 return new PostalAddressLineDetails(DSL.name(name), null); 246 } 247 248 /** 249 * Rename this table 250 */ 251 @Override 252 public PostalAddressLineDetails rename(Name name) { 253 return new PostalAddressLineDetails(name, null); 254 } 255 256 /** 257 * Rename this table 258 */ 259 @Override 260 public PostalAddressLineDetails rename(Table<?> name) { 261 return new PostalAddressLineDetails(name.getQualifiedName(), null); 262 } 263 264 /** 265 * Create an inline derived table from this table 266 */ 267 @Override 268 public PostalAddressLineDetails where(Condition condition) { 269 return new PostalAddressLineDetails(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 270 } 271 272 /** 273 * Create an inline derived table from this table 274 */ 275 @Override 276 public PostalAddressLineDetails where(Collection<? extends Condition> conditions) { 277 return where(DSL.and(conditions)); 278 } 279 280 /** 281 * Create an inline derived table from this table 282 */ 283 @Override 284 public PostalAddressLineDetails where(Condition... conditions) { 285 return where(DSL.and(conditions)); 286 } 287 288 /** 289 * Create an inline derived table from this table 290 */ 291 @Override 292 public PostalAddressLineDetails where(Field<Boolean> condition) { 293 return where(DSL.condition(condition)); 294 } 295 296 /** 297 * Create an inline derived table from this table 298 */ 299 @Override 300 @PlainSQL 301 public PostalAddressLineDetails where(SQL condition) { 302 return where(DSL.condition(condition)); 303 } 304 305 /** 306 * Create an inline derived table from this table 307 */ 308 @Override 309 @PlainSQL 310 public PostalAddressLineDetails where(@Stringly.SQL String condition) { 311 return where(DSL.condition(condition)); 312 } 313 314 /** 315 * Create an inline derived table from this table 316 */ 317 @Override 318 @PlainSQL 319 public PostalAddressLineDetails where(@Stringly.SQL String condition, Object... binds) { 320 return where(DSL.condition(condition, binds)); 321 } 322 323 /** 324 * Create an inline derived table from this table 325 */ 326 @Override 327 @PlainSQL 328 public PostalAddressLineDetails where(@Stringly.SQL String condition, QueryPart... parts) { 329 return where(DSL.condition(condition, parts)); 330 } 331 332 /** 333 * Create an inline derived table from this table 334 */ 335 @Override 336 public PostalAddressLineDetails whereExists(TableLike<?> select) { 337 return where(DSL.exists(select)); 338 } 339 340 /** 341 * Create an inline derived table from this table 342 */ 343 @Override 344 public PostalAddressLineDetails whereNotExists(TableLike<?> select) { 345 return where(DSL.notExists(select)); 346 } 347}