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