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.EntityCollectionAttributePK; 009import com.echothree.model.data.core.common.pk.EntityInstancePK; 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.EntityInstances.EntityInstancesPath; 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.Name; 023import org.jooq.PlainSQL; 024import org.jooq.QueryPart; 025import org.jooq.SQL; 026import org.jooq.Stringly; 027import org.jooq.Table; 028import org.jooq.TableField; 029import org.jooq.TableLike; 030import org.jooq.TableOptions; 031import org.jooq.UniqueKey; 032import org.jooq.impl.DSL; 033import org.jooq.impl.Internal; 034import org.jooq.impl.SQLDataType; 035import org.jooq.impl.TableImpl; 036 037 038/** 039 * This class is generated by jOOQ. 040 */ 041@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" }) 042public class EntityCollectionAttributes extends TableImpl<com.echothree.model.jooq.server.records.core.EntityCollectionAttributes> { 043 044 private static final long serialVersionUID = 1L; 045 046 /** 047 * The reference instance of <code>entitycollectionattributes</code> 048 */ 049 public static final EntityCollectionAttributes EntityCollectionAttributes = new EntityCollectionAttributes(); 050 051 /** 052 * The class holding records for this type 053 */ 054 @Override 055 public Class<com.echothree.model.jooq.server.records.core.EntityCollectionAttributes> getRecordType() { 056 return com.echothree.model.jooq.server.records.core.EntityCollectionAttributes.class; 057 } 058 059 /** 060 * The column 061 * <code>entitycollectionattributes.eca_entitycollectionattributeid</code>. 062 */ 063 public final TableField<com.echothree.model.jooq.server.records.core.EntityCollectionAttributes, EntityCollectionAttributePK> ENTITY_COLLECTION_ATTRIBUTE = createField(DSL.name("eca_entitycollectionattributeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, EntityCollectionAttributePK.class, id -> new com.echothree.model.data.core.common.pk.EntityCollectionAttributePK(id), primaryKey -> primaryKey.getEntityId())); 064 065 /** 066 * The column 067 * <code>entitycollectionattributes.eca_ena_entityattributeid</code>. 068 */ 069 public final TableField<com.echothree.model.jooq.server.records.core.EntityCollectionAttributes, EntityAttributePK> ENTITY_ATTRIBUTE = createField(DSL.name("eca_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())); 070 071 /** 072 * The column 073 * <code>entitycollectionattributes.eca_eni_entityinstanceid</code>. 074 */ 075 public final TableField<com.echothree.model.jooq.server.records.core.EntityCollectionAttributes, EntityInstancePK> ENTITY_INSTANCE = createField(DSL.name("eca_eni_entityinstanceid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, EntityInstancePK.class, id -> new com.echothree.model.data.core.common.pk.EntityInstancePK(id), primaryKey -> primaryKey.getEntityId())); 076 077 /** 078 * The column 079 * <code>entitycollectionattributes.eca_entityinstanceattributeid</code>. 080 */ 081 public final TableField<com.echothree.model.jooq.server.records.core.EntityCollectionAttributes, EntityInstancePK> ENTITY_INSTANCE_ATTRIBUTE = createField(DSL.name("eca_entityinstanceattributeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, EntityInstancePK.class, id -> new com.echothree.model.data.core.common.pk.EntityInstancePK(id), primaryKey -> primaryKey.getEntityId())); 082 083 /** 084 * The column <code>entitycollectionattributes.eca_fromtime</code>. 085 */ 086 public final TableField<com.echothree.model.jooq.server.records.core.EntityCollectionAttributes, Long> FROM_TIME = createField(DSL.name("eca_fromtime"), SQLDataType.BIGINT.nullable(false), this, ""); 087 088 /** 089 * The column <code>entitycollectionattributes.eca_thrutime</code>. 090 */ 091 public final TableField<com.echothree.model.jooq.server.records.core.EntityCollectionAttributes, Long> THRU_TIME = createField(DSL.name("eca_thrutime"), SQLDataType.BIGINT.nullable(false), this, ""); 092 093 private EntityCollectionAttributes(Name alias, Table<com.echothree.model.jooq.server.records.core.EntityCollectionAttributes> aliased) { 094 this(alias, aliased, (Field<?>[]) null, null); 095 } 096 097 private EntityCollectionAttributes(Name alias, Table<com.echothree.model.jooq.server.records.core.EntityCollectionAttributes> aliased, Field<?>[] parameters, Condition where) { 098 super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where); 099 } 100 101 /** 102 * Create an aliased <code>entitycollectionattributes</code> table reference 103 */ 104 public EntityCollectionAttributes(String alias) { 105 this(DSL.name(alias), EntityCollectionAttributes); 106 } 107 108 /** 109 * Create an aliased <code>entitycollectionattributes</code> table reference 110 */ 111 public EntityCollectionAttributes(Name alias) { 112 this(alias, EntityCollectionAttributes); 113 } 114 115 /** 116 * Create a <code>entitycollectionattributes</code> table reference 117 */ 118 public EntityCollectionAttributes() { 119 this(DSL.name("entitycollectionattributes"), null); 120 } 121 122 @Override 123 public UniqueKey<com.echothree.model.jooq.server.records.core.EntityCollectionAttributes> getPrimaryKey() { 124 return KeyRegistry.ENTITY_COLLECTION_ATTRIBUTES_PK; 125 } 126 127 @Override 128 public List<ForeignKey<com.echothree.model.jooq.server.records.core.EntityCollectionAttributes, ?>> getReferences() { 129 return Arrays.asList(KeyRegistry.ENTITY_COLLECTION_ATTRIBUTES_ENTITY_ATTRIBUTE_FK, KeyRegistry.ENTITY_COLLECTION_ATTRIBUTES_ENTITY_INSTANCE_FK, KeyRegistry.ENTITY_COLLECTION_ATTRIBUTES_ENTITY_INSTANCE_ATTRIBUTE_FK); 130 } 131 132 private transient EntityAttributesPath _eca_ena_entityattributeid_fk; 133 134 /** 135 * Get the implicit join path to the <code>entityattributes</code> table. 136 */ 137 public EntityAttributesPath eca_ena_entityattributeid_fk() { 138 if (_eca_ena_entityattributeid_fk == null) 139 _eca_ena_entityattributeid_fk = new EntityAttributesPath(this, KeyRegistry.ENTITY_COLLECTION_ATTRIBUTES_ENTITY_ATTRIBUTE_FK, null); 140 141 return _eca_ena_entityattributeid_fk; 142 } 143 144 private transient EntityInstancesPath _eca_eni_entityinstanceid_fk; 145 146 /** 147 * Get the implicit join path to the <code>entityinstances</code> table, via 148 * the <code>eca_eni_entityinstanceid_fk</code> key. 149 */ 150 public EntityInstancesPath eca_eni_entityinstanceid_fk() { 151 if (_eca_eni_entityinstanceid_fk == null) 152 _eca_eni_entityinstanceid_fk = new EntityInstancesPath(this, KeyRegistry.ENTITY_COLLECTION_ATTRIBUTES_ENTITY_INSTANCE_FK, null); 153 154 return _eca_eni_entityinstanceid_fk; 155 } 156 157 private transient EntityInstancesPath _eca_entityinstanceattributeid_fk; 158 159 /** 160 * Get the implicit join path to the <code>entityinstances</code> table, via 161 * the <code>eca_entityinstanceattributeid_fk</code> key. 162 */ 163 public EntityInstancesPath eca_entityinstanceattributeid_fk() { 164 if (_eca_entityinstanceattributeid_fk == null) 165 _eca_entityinstanceattributeid_fk = new EntityInstancesPath(this, KeyRegistry.ENTITY_COLLECTION_ATTRIBUTES_ENTITY_INSTANCE_ATTRIBUTE_FK, null); 166 167 return _eca_entityinstanceattributeid_fk; 168 } 169 170 @Override 171 public EntityCollectionAttributes as(String alias) { 172 return new EntityCollectionAttributes(DSL.name(alias), this); 173 } 174 175 @Override 176 public EntityCollectionAttributes as(Name alias) { 177 return new EntityCollectionAttributes(alias, this); 178 } 179 180 @Override 181 public EntityCollectionAttributes as(Table<?> alias) { 182 return new EntityCollectionAttributes(alias.getQualifiedName(), this); 183 } 184 185 /** 186 * Rename this table 187 */ 188 @Override 189 public EntityCollectionAttributes rename(String name) { 190 return new EntityCollectionAttributes(DSL.name(name), null); 191 } 192 193 /** 194 * Rename this table 195 */ 196 @Override 197 public EntityCollectionAttributes rename(Name name) { 198 return new EntityCollectionAttributes(name, null); 199 } 200 201 /** 202 * Rename this table 203 */ 204 @Override 205 public EntityCollectionAttributes rename(Table<?> name) { 206 return new EntityCollectionAttributes(name.getQualifiedName(), null); 207 } 208 209 /** 210 * Create an inline derived table from this table 211 */ 212 @Override 213 public EntityCollectionAttributes where(Condition condition) { 214 return new EntityCollectionAttributes(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition)); 215 } 216 217 /** 218 * Create an inline derived table from this table 219 */ 220 @Override 221 public EntityCollectionAttributes where(Collection<? extends Condition> conditions) { 222 return where(DSL.and(conditions)); 223 } 224 225 /** 226 * Create an inline derived table from this table 227 */ 228 @Override 229 public EntityCollectionAttributes where(Condition... conditions) { 230 return where(DSL.and(conditions)); 231 } 232 233 /** 234 * Create an inline derived table from this table 235 */ 236 @Override 237 public EntityCollectionAttributes where(Field<Boolean> condition) { 238 return where(DSL.condition(condition)); 239 } 240 241 /** 242 * Create an inline derived table from this table 243 */ 244 @Override 245 @PlainSQL 246 public EntityCollectionAttributes where(SQL condition) { 247 return where(DSL.condition(condition)); 248 } 249 250 /** 251 * Create an inline derived table from this table 252 */ 253 @Override 254 @PlainSQL 255 public EntityCollectionAttributes where(@Stringly.SQL String 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 EntityCollectionAttributes where(@Stringly.SQL String condition, Object... binds) { 265 return where(DSL.condition(condition, binds)); 266 } 267 268 /** 269 * Create an inline derived table from this table 270 */ 271 @Override 272 @PlainSQL 273 public EntityCollectionAttributes where(@Stringly.SQL String condition, QueryPart... parts) { 274 return where(DSL.condition(condition, parts)); 275 } 276 277 /** 278 * Create an inline derived table from this table 279 */ 280 @Override 281 public EntityCollectionAttributes whereExists(TableLike<?> select) { 282 return where(DSL.exists(select)); 283 } 284 285 /** 286 * Create an inline derived table from this table 287 */ 288 @Override 289 public EntityCollectionAttributes whereNotExists(TableLike<?> select) { 290 return where(DSL.notExists(select)); 291 } 292}