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