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