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.SelectorBooleanTypePK;
008import com.echothree.model.data.selector.common.pk.SelectorNodeBooleanPK;
009import com.echothree.model.data.selector.common.pk.SelectorNodePK;
010import com.echothree.model.jooq.server.KeyRegistry;
011import com.echothree.model.jooq.server.tables.selector.SelectorBooleanTypes.SelectorBooleanTypesPath;
012import com.echothree.model.jooq.server.tables.selector.SelectorNodes.SelectorNodesPath;
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 SelectorNodeBooleans extends TableImpl<com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans> {
043
044    private static final long serialVersionUID = 1L;
045
046    /**
047     * The reference instance of <code>selectornodebooleans</code>
048     */
049    public static final SelectorNodeBooleans SelectorNodeBooleans = new SelectorNodeBooleans();
050
051    /**
052     * The class holding records for this type
053     */
054    @Override
055    public Class<com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans> getRecordType() {
056        return com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans.class;
057    }
058
059    /**
060     * The column
061     * <code>selectornodebooleans.slndbln_selectornodebooleanid</code>.
062     */
063    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans, SelectorNodeBooleanPK> SELECTOR_NODE_BOOLEAN = createField(DSL.name("slndbln_selectornodebooleanid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SelectorNodeBooleanPK.class, id -> new com.echothree.model.data.selector.common.pk.SelectorNodeBooleanPK(id), primaryKey -> primaryKey.getEntityId()));
064
065    /**
066     * The column <code>selectornodebooleans.slndbln_slnd_selectornodeid</code>.
067     */
068    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans, SelectorNodePK> SELECTOR_NODE = createField(DSL.name("slndbln_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()));
069
070    /**
071     * The column
072     * <code>selectornodebooleans.slndbln_slbt_selectorbooleantypeid</code>.
073     */
074    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans, SelectorBooleanTypePK> SELECTOR_BOOLEAN_TYPE = createField(DSL.name("slndbln_slbt_selectorbooleantypeid"), SQLDataType.BIGINT.nullable(false), this, "", Converter.ofNullable(Long.class, SelectorBooleanTypePK.class, id -> new com.echothree.model.data.selector.common.pk.SelectorBooleanTypePK(id), primaryKey -> primaryKey.getEntityId()));
075
076    /**
077     * The column <code>selectornodebooleans.slndbln_leftselectornodeid</code>.
078     */
079    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans, SelectorNodePK> LEFT_SELECTOR_NODE = createField(DSL.name("slndbln_leftselectornodeid"), 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()));
080
081    /**
082     * The column <code>selectornodebooleans.slndbln_rightselectornodeid</code>.
083     */
084    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans, SelectorNodePK> RIGHT_SELECTOR_NODE = createField(DSL.name("slndbln_rightselectornodeid"), 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()));
085
086    /**
087     * The column <code>selectornodebooleans.slndbln_fromtime</code>.
088     */
089    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans, Long> FROM_TIME = createField(DSL.name("slndbln_fromtime"), SQLDataType.BIGINT.nullable(false), this, "");
090
091    /**
092     * The column <code>selectornodebooleans.slndbln_thrutime</code>.
093     */
094    public final TableField<com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans, Long> THRU_TIME = createField(DSL.name("slndbln_thrutime"), SQLDataType.BIGINT.nullable(false), this, "");
095
096    private SelectorNodeBooleans(Name alias, Table<com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans> aliased) {
097        this(alias, aliased, (Field<?>[]) null, null);
098    }
099
100    private SelectorNodeBooleans(Name alias, Table<com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans> aliased, Field<?>[] parameters, Condition where) {
101        super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
102    }
103
104    /**
105     * Create an aliased <code>selectornodebooleans</code> table reference
106     */
107    public SelectorNodeBooleans(String alias) {
108        this(DSL.name(alias), SelectorNodeBooleans);
109    }
110
111    /**
112     * Create an aliased <code>selectornodebooleans</code> table reference
113     */
114    public SelectorNodeBooleans(Name alias) {
115        this(alias, SelectorNodeBooleans);
116    }
117
118    /**
119     * Create a <code>selectornodebooleans</code> table reference
120     */
121    public SelectorNodeBooleans() {
122        this(DSL.name("selectornodebooleans"), null);
123    }
124
125    @Override
126    public UniqueKey<com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans> getPrimaryKey() {
127        return KeyRegistry.SELECTOR_NODE_BOOLEANS_PK;
128    }
129
130    @Override
131    public List<UniqueKey<com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans>> getUniqueKeys() {
132        return Arrays.asList(KeyRegistry.SELECTOR_NODE_BOOLEANS_SELECTOR_NODE_AND_THRU_TIME_UK);
133    }
134
135    @Override
136    public List<ForeignKey<com.echothree.model.jooq.server.records.selector.SelectorNodeBooleans, ?>> getReferences() {
137        return Arrays.asList(KeyRegistry.SELECTOR_NODE_BOOLEANS_LEFT_SELECTOR_NODE_FK, KeyRegistry.SELECTOR_NODE_BOOLEANS_RIGHT_SELECTOR_NODE_FK, KeyRegistry.SELECTOR_NODE_BOOLEANS_SELECTOR_BOOLEAN_TYPE_FK, KeyRegistry.SELECTOR_NODE_BOOLEANS_SELECTOR_NODE_FK);
138    }
139
140    private transient SelectorNodesPath _slndbln_leftselectornodeid_fk;
141
142    /**
143     * Get the implicit join path to the <code>selectornodes</code> table, via
144     * the <code>slndbln_leftselectornodeid_fk</code> key.
145     */
146    public SelectorNodesPath slndbln_leftselectornodeid_fk() {
147        if (_slndbln_leftselectornodeid_fk == null)
148            _slndbln_leftselectornodeid_fk = new SelectorNodesPath(this, KeyRegistry.SELECTOR_NODE_BOOLEANS_LEFT_SELECTOR_NODE_FK, null);
149
150        return _slndbln_leftselectornodeid_fk;
151    }
152
153    private transient SelectorNodesPath _slndbln_rightselectornodeid_fk;
154
155    /**
156     * Get the implicit join path to the <code>selectornodes</code> table, via
157     * the <code>slndbln_rightselectornodeid_fk</code> key.
158     */
159    public SelectorNodesPath slndbln_rightselectornodeid_fk() {
160        if (_slndbln_rightselectornodeid_fk == null)
161            _slndbln_rightselectornodeid_fk = new SelectorNodesPath(this, KeyRegistry.SELECTOR_NODE_BOOLEANS_RIGHT_SELECTOR_NODE_FK, null);
162
163        return _slndbln_rightselectornodeid_fk;
164    }
165
166    private transient SelectorBooleanTypesPath _slndbln_slbt_selectorbooleantypeid_fk;
167
168    /**
169     * Get the implicit join path to the <code>selectorbooleantypes</code>
170     * table.
171     */
172    public SelectorBooleanTypesPath slndbln_slbt_selectorbooleantypeid_fk() {
173        if (_slndbln_slbt_selectorbooleantypeid_fk == null)
174            _slndbln_slbt_selectorbooleantypeid_fk = new SelectorBooleanTypesPath(this, KeyRegistry.SELECTOR_NODE_BOOLEANS_SELECTOR_BOOLEAN_TYPE_FK, null);
175
176        return _slndbln_slbt_selectorbooleantypeid_fk;
177    }
178
179    private transient SelectorNodesPath _slndbln_slnd_selectornodeid_fk;
180
181    /**
182     * Get the implicit join path to the <code>selectornodes</code> table, via
183     * the <code>slndbln_slnd_selectornodeid_fk</code> key.
184     */
185    public SelectorNodesPath slndbln_slnd_selectornodeid_fk() {
186        if (_slndbln_slnd_selectornodeid_fk == null)
187            _slndbln_slnd_selectornodeid_fk = new SelectorNodesPath(this, KeyRegistry.SELECTOR_NODE_BOOLEANS_SELECTOR_NODE_FK, null);
188
189        return _slndbln_slnd_selectornodeid_fk;
190    }
191
192    @Override
193    public SelectorNodeBooleans as(String alias) {
194        return new SelectorNodeBooleans(DSL.name(alias), this);
195    }
196
197    @Override
198    public SelectorNodeBooleans as(Name alias) {
199        return new SelectorNodeBooleans(alias, this);
200    }
201
202    @Override
203    public SelectorNodeBooleans as(Table<?> alias) {
204        return new SelectorNodeBooleans(alias.getQualifiedName(), this);
205    }
206
207    /**
208     * Rename this table
209     */
210    @Override
211    public SelectorNodeBooleans rename(String name) {
212        return new SelectorNodeBooleans(DSL.name(name), null);
213    }
214
215    /**
216     * Rename this table
217     */
218    @Override
219    public SelectorNodeBooleans rename(Name name) {
220        return new SelectorNodeBooleans(name, null);
221    }
222
223    /**
224     * Rename this table
225     */
226    @Override
227    public SelectorNodeBooleans rename(Table<?> name) {
228        return new SelectorNodeBooleans(name.getQualifiedName(), null);
229    }
230
231    /**
232     * Create an inline derived table from this table
233     */
234    @Override
235    public SelectorNodeBooleans where(Condition condition) {
236        return new SelectorNodeBooleans(getQualifiedName(), aliased() ? this : null, null, Internal.condition(this, condition));
237    }
238
239    /**
240     * Create an inline derived table from this table
241     */
242    @Override
243    public SelectorNodeBooleans where(Collection<? extends Condition> conditions) {
244        return where(DSL.and(conditions));
245    }
246
247    /**
248     * Create an inline derived table from this table
249     */
250    @Override
251    public SelectorNodeBooleans where(Condition... conditions) {
252        return where(DSL.and(conditions));
253    }
254
255    /**
256     * Create an inline derived table from this table
257     */
258    @Override
259    public SelectorNodeBooleans where(Field<Boolean> condition) {
260        return where(DSL.condition(condition));
261    }
262
263    /**
264     * Create an inline derived table from this table
265     */
266    @Override
267    @PlainSQL
268    public SelectorNodeBooleans where(SQL condition) {
269        return where(DSL.condition(condition));
270    }
271
272    /**
273     * Create an inline derived table from this table
274     */
275    @Override
276    @PlainSQL
277    public SelectorNodeBooleans where(@Stringly.SQL String condition) {
278        return where(DSL.condition(condition));
279    }
280
281    /**
282     * Create an inline derived table from this table
283     */
284    @Override
285    @PlainSQL
286    public SelectorNodeBooleans where(@Stringly.SQL String condition, Object... binds) {
287        return where(DSL.condition(condition, binds));
288    }
289
290    /**
291     * Create an inline derived table from this table
292     */
293    @Override
294    @PlainSQL
295    public SelectorNodeBooleans where(@Stringly.SQL String condition, QueryPart... parts) {
296        return where(DSL.condition(condition, parts));
297    }
298
299    /**
300     * Create an inline derived table from this table
301     */
302    @Override
303    public SelectorNodeBooleans whereExists(TableLike<?> select) {
304        return where(DSL.exists(select));
305    }
306
307    /**
308     * Create an inline derived table from this table
309     */
310    @Override
311    public SelectorNodeBooleans whereNotExists(TableLike<?> select) {
312        return where(DSL.notExists(select));
313    }
314}