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