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