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.SelectorNodeEntityTimePK;
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 SelectorNodeEntityTimes extends TableImpl<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityTimes> {
041
042    private static final long serialVersionUID = 1L;
043
044    /**
045     * The reference instance of <code>selectornodeentitytimes</code>
046     */
047    public static final SelectorNodeEntityTimes SelectorNodeEntityTimes = new SelectorNodeEntityTimes();
048
049    /**
050     * The class holding records for this type
051     */
052    @Override
053    public Class<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityTimes> getRecordType() {
054        return com.echothree.model.jooq.server.records.selector.SelectorNodeEntityTimes.class;
055    }
056
057    /**
058     * The column
059     * <code>selectornodeentitytimes.slndet_selectornodeentitytimeid</code>.
060     */
061    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityTimes, SelectorNodeEntityTimePK> SELECTOR_NODE_ENTITY_TIME = createField(DSL.name("slndet_selectornodeentitytimeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SelectorNodeEntityTimePK.class, id -> new com.echothree.model.data.selector.common.pk.SelectorNodeEntityTimePK(id), primaryKey -> primaryKey.getEntityId()));
062
063    /**
064     * The column
065     * <code>selectornodeentitytimes.slndet_slnd_selectornodeid</code>.
066     */
067    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityTimes, SelectorNodePK> SELECTOR_NODE = createField(DSL.name("slndet_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>selectornodeentitytimes.slndet_timeattribute</code>.
071     */
072    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityTimes, Long> TIME_ATTRIBUTE = createField(DSL.name("slndet_timeattribute"), SQLDataType.BIGINT.nullable(false), this, "");
073
074    /**
075     * The column <code>selectornodeentitytimes.slndet_fromtime</code>.
076     */
077    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityTimes, Long> FROM_TIME = createField(DSL.name("slndet_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
078
079    /**
080     * The column <code>selectornodeentitytimes.slndet_thrutime</code>.
081     */
082    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityTimes, Long> THRU_TIME = createField(DSL.name("slndet_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
083
084    private SelectorNodeEntityTimes(Name alias, Table<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityTimes> aliased) {
085        this(alias, aliased, (Field<?>[]) null, null);
086    }
087
088    private SelectorNodeEntityTimes(Name alias, Table<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityTimes> aliased, Field<?>[] parameters, Condition where) {
089        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
090    }
091
092    /**
093     * Create an aliased <code>selectornodeentitytimes</code> table reference
094     */
095    public SelectorNodeEntityTimes(String alias) {
096        this(DSL.name(alias), SelectorNodeEntityTimes);
097    }
098
099    /**
100     * Create an aliased <code>selectornodeentitytimes</code> table reference
101     */
102    public SelectorNodeEntityTimes(Name alias) {
103        this(alias, SelectorNodeEntityTimes);
104    }
105
106    /**
107     * Create a <code>selectornodeentitytimes</code> table reference
108     */
109    public SelectorNodeEntityTimes() {
110        this(DSL.name("selectornodeentitytimes"), null);
111    }
112
113    @Override
114    public UniqueKey<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityTimes> getPrimaryKey() {
115        return KeyRegistry.SELECTOR_NODE_ENTITY_TIMES_PK;
116    }
117
118    @Override
119    public List<UniqueKey<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityTimes>> getUniqueKeys() {
120        return Arrays.asList(KeyRegistry.SELECTOR_NODE_ENTITY_TIMES_SELECTOR_NODE_AND_THRU_TIME_UK);
121    }
122
123    @Override
124    public List<ForeignKey<com.echothree.model.jooq.server.records.selector.SelectorNodeEntityTimes, ?>> getReferences() {
125        return Arrays.asList(KeyRegistry.SELECTOR_NODE_ENTITY_TIMES_SELECTOR_NODE_FK);
126    }
127
128    private transient SelectorNodesPath _slndet_slnd_selectornodeid_fk;
129
130    /**
131     * Get the implicit join path to the <code>selectornodes</code> table.
132     */
133    public SelectorNodesPath slndet_slnd_selectornodeid_fk() {
134        if (_slndet_slnd_selectornodeid_fk == null)
135            _slndet_slnd_selectornodeid_fk = new SelectorNodesPath(this, KeyRegistry.SELECTOR_NODE_ENTITY_TIMES_SELECTOR_NODE_FK, null);
136
137        return _slndet_slnd_selectornodeid_fk;
138    }
139
140    @Override
141    public SelectorNodeEntityTimes as(String alias) {
142        return new SelectorNodeEntityTimes(DSL.name(alias), this);
143    }
144
145    @Override
146    public SelectorNodeEntityTimes as(Name alias) {
147        return new SelectorNodeEntityTimes(alias, this);
148    }
149
150    @Override
151    public SelectorNodeEntityTimes as(Table<?> alias) {
152        return new SelectorNodeEntityTimes(alias.getQualifiedName(), this);
153    }
154
155    /**
156     * Rename this table
157     */
158    @Override
159    public SelectorNodeEntityTimes rename(String name) {
160        return new SelectorNodeEntityTimes(DSL.name(name), null);
161    }
162
163    /**
164     * Rename this table
165     */
166    @Override
167    public SelectorNodeEntityTimes rename(Name name) {
168        return new SelectorNodeEntityTimes(name, null);
169    }
170
171    /**
172     * Rename this table
173     */
174    @Override
175    public SelectorNodeEntityTimes rename(Table<?> name) {
176        return new SelectorNodeEntityTimes(name.getQualifiedName(), null);
177    }
178
179    /**
180     * Create an inline derived table from this table
181     */
182    @Override
183    public SelectorNodeEntityTimes where(Condition condition) {
184        return new SelectorNodeEntityTimes(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 SelectorNodeEntityTimes 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 SelectorNodeEntityTimes 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 SelectorNodeEntityTimes 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 SelectorNodeEntityTimes 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 SelectorNodeEntityTimes 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 SelectorNodeEntityTimes 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 SelectorNodeEntityTimes 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 SelectorNodeEntityTimes 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 SelectorNodeEntityTimes whereNotExists(TableLike<?> select) {
260        return where(DSL.notExists(select));
261    }
262}