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