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